Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item.share() is not working when the groups parameter is specified #1780

Open
avstjohn opened this issue Mar 19, 2024 · 1 comment
Open

Item.share() is not working when the groups parameter is specified #1780

avstjohn opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels

Comments

@avstjohn
Copy link

Describe the bug
I am not able to share items with specified groups with the arcgis.gis.Item.share() method. I tried a hosted feature layer and a view of that HFL. The org and everyone parameters do work, but the groups parameter with a group ID string or with the Group object fails to change any sharing properties.
And the other way fails too: I set the group sharing manually in the Online Portal and then run groups=None, but nothing changes.

To Reproduce

view_items = gis_target.content.search(query=rf'title:{target_view_name}, type:"Feature Service"')
target_group_id = "TARGET GROUP ID"
group = gis_target.groups.get(groupid=target_group_id)
view_items[0].share(everyone=False, org=False, allow_members_to_edit=False, groups=[group])

Error
No error message, just failure to share the item with the specified group.

Screenshots
Fiddler sessions from running the above code.
image

Expected behavior
I expect the item to be shared with my specified group.

Platform (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Python API Version: 2.2.0.1

Additional context
Add any other context about the problem here, attachments etc.

@avstjohn avstjohn added the bug label Mar 19, 2024
@nanaeaubry
Copy link
Contributor

@achapkowski Can you advise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants