Problem updating item access

661
2
Jump to solution
07-05-2018 06:27 AM
BenJenkins
New Contributor II

I am attempting to automate our publication process and as a part of that I'm trying to update an item's sharing settings. I am able to show the item's current setting by using "print(itemobject["access"])" but can't seem to change the value from private to public using "itemobject.update({"access": "public"})" even though the value shows changes made manually through portal or server manager. 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
RohitSingh2
Esri Contributor

You can use itemobject.share(True) to make it public.

View solution in original post

2 Replies
RohitSingh2
Esri Contributor

You can use itemobject.share(True) to make it public.

BenJenkins
New Contributor II

Much appreciate Rohit, That has answered my question. Thanks. 

0 Kudos