How to access "users_update_items" in a Group object

46
2
a week ago
Highlighted
by
New Contributor II

Hi All!

Looking for some help on how to access the users_update_items property of the Group object.  I'm not sure if this is possible, but I do see it as an argument in the class.

Trying to get that attribute out so I can assess what permissions the group members have-can they only edit their own content or can they edit others' content in the group too?

I can successfully call back the following from my group object in the code: 

  • title
  • owner
  • access
  • description
  • groupid
  • get_members (works too)

Thanks so much in advance!

Reply
0 Kudos
2 Replies
Highlighted
Esri Contributor

Hello,

I assume you are talking about the setting "What items in the group can its members update?" which can either be "Only their own items" or "All items (group membership is limited to the organization)".

If this is the case, then the following should help.

gm=arcgis.gis.GroupManager(myGIS)

myGroup=gm.get("groupID")

myGroup.capabilites

If "updateitemcontrol" is returned, then the group allows users to update items created by other members. If an empty listed is returned, then users can only edit their own items.

This is the equivalent of the "users_update_items" setting when creating a group using the create() method: https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.GroupManager

Thanks,

Calvin

Reply
0 Kudos
Highlighted
by
New Contributor II

Hi!

Thanks for the reply!  I tried that out and was able to print the group name, but when I went to .capabilities it printed "[]".

I also saw this in the documentation: "As with other resource manager objects, you would not create an instance of GroupManager using its constructor, but access it from the groups property of the GIS object".  But even with that, your code worked to access the group, which is confusing.

I looked at the documentation again, and see that "user_update_items" is an argument in the "update" method for Group, and the "create" method for the GroupManager object.  So I guess it remains to be seen how to pull that property out of an existing group?

Reply
0 Kudos