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()