ArcGIS Python API EnterpriseUsers functions won't work

277
0
05-11-2018 07:12 AM
Jay_Gregory
Occasional Contributor III

I've been following some of the documentation at arcgis.gis.admin module — arcgis 1.4.1 documentation trying to modify users in my 10.6 Portal, but keep getting errors.  Here is my code:

import arcgis.gis.admin as admin
from arcgis.gis import GIS

myPortal = GIS("https://myportal/mywebadaptor","username","password", verify_cert=False)
users = admin.EnterpriseUsers("https://myportal/mywebadaptor", myPortal)
users.get("username")

‍‍‍‍‍‍‍

This returns a whole bunch of errors, but primarily HTTP Error 500.  

Anyone have experience with this?

What I'm primarily trying to do is update IDP usernames using this API, as documented in the EnterpriseUsers.update method, but the get method doesn't work either.  

0 Kudos
0 Replies