How to update share access for all items in a group to Public

742
1
Jump to solution
08-11-2021 04:59 PM
JennieCatalano1
New Contributor III

As administrator (and new programmer), my responsibilities includes sharing  Portal items with the Public and to a group set up with collaboration to our AGOL account.  However, when opening the group in AGOL, the items' share defaults to Private.  It doesn't take the Public access setting from Portal with it.  I'm trying to write a script that will update the items in that group to Public.  I'm able to access the items using the below, but I can't figure out how to update the share for all of them to public.  Any help is appreciated. 

odgroup_items = od_group.content()

group_items = od_group.content()


  

0 Kudos
1 Solution

Accepted Solutions
DavinWalker2
Esri Contributor

This documentation explains how to share items with the Python API.

You will need to use a for loop to loop through every item in your list.

View solution in original post

1 Reply
DavinWalker2
Esri Contributor

This documentation explains how to share items with the Python API.

You will need to use a for loop to loop through every item in your list.