Editing Organisation Settings

797
2
Jump to solution
04-05-2017 08:44 AM
MichaelKelly
Occasional Contributor III

Is is possible to update the properties of a portal via the ArcGIS API for Python yet? I want to change the basemapGalleryGroupQuery property but can't find any way to do. I can access what I want to change using the following:

gis = GIS(PortalUrl, ArcGisOnlineUserName, ArcGisOnlinePassword)
display(gis.properties.basemapGalleryGroupQuery)

If not, is it possible to access the token generated after running GIS()? That way I could build an Update Rest request myself without having to separately request a token.

0 Kudos
1 Solution

Accepted Solutions
AtmaMani
Esri Contributor

Michael you can get the token like this:

gis = GIS(portalurl, username, password)
token = gis._con._token

We are working on this capability currently, so in the subsequent releases you would be able to accomplish that using the API itself.

View solution in original post

2 Replies
AtmaMani
Esri Contributor

Michael you can get the token like this:

gis = GIS(portalurl, username, password)
token = gis._con._token

We are working on this capability currently, so in the subsequent releases you would be able to accomplish that using the API itself.

MichaelKelly
Occasional Contributor III

Hi Atma - thanks for your prompt response. That's perfect - I'll hack it for now and once the API is updated I can change the code accordingly.

0 Kudos