Hello,
I've got a file geodatabase and a hosted feature layer published to our portal and we are trying to update the file geodatabase with a python script - something similar to this.
gis = GIS(portal, user, password)
sdItem = gis.content.search(query="title:" + item_name, item_type="File Geodatabase")[0]
print("Found SD: {}, ID: {} \n Uploading and overwriting...".format(sdItem.title, sdItem.id))
sd = "path-to-zip-file"
sdItem.update(data=sd)
fs = sdItem.publish(overwrite=True)
print("Complete!")
The items being updated by the script are not owned by the account (user/password) used to connect in this script. We've got a group setup in the portal, and group members are allowed to update all items. The account being used to connect in the script is a member of this group. The items we are attempting to update are in the group as well.
sditem.Update works.
sdItem.publish fails with this error:
You do not have permissions to access this resource or perform this operation.
Any ideas on how we can fix this?
mike...