gis.content.add() secure service?

10-29-2019 03:48 AM
New Contributor II

Can't seem to find any documentation but is it possible to add a secure service to agol/portal with gis.content.add()?  Don't seem to have the option inside item_properties so I'm thinking this is not possible at the moment.

Or possible with the rest api?

0 Kudos
1 Reply
Esri Regular Contributor

Hi Andrew,

It doesn't look like there are any keys to modify the sharing settings of items added using gis.content.add, but you can modify the share settings after the item is added using:

item.share(<share settings here>)

Share maps and layers | ArcGIS for Developers 


0 Kudos