AnsweredAssumed Answered

Can't share item to group using Python API

Question asked by jbailey.spatialbridge on Feb 5, 2019
Latest reply on Feb 6, 2019 by jbailey.spatialbridge

I have a web map that I wish to share with a group in ArcGIS Enterprise. Using the Portal, I can share the map with the group:

 

 


However, if I try to share the same map with the same group using the Python API, the map cannot be shared with the group:

 

cbmt.share(org=True, groups=basemaps_group.title)

{'notSharedWith': ['Basemaps / Cartes de base'],
'itemId': '21e8f2ab90904f4ba38e44386f03851c'}


Note that I am able to successfully share other maps (e.g., Esri basemaps) with this group within the same script.

 

Why can't I share the map with the group using the Python API?

Outcomes