My Anaconda and ArcGIS api for python tested successfully with anonymous authentication from AGOL. When I try to access our onsite portal via admin module I get: "AttributeError: 'tuple' object has no attribute 'admin'"
Is the api not supported with portal version 10.3.1?
Solved! Go to Solution.
Patrick,
Although I can't find any specific documentation that definitively states it is not supported, looking at the documentation for "Scripting with ArcGIS Python API", the version dropdown shows version 10.4 and 10.3 grayed out, which probably means it is not supported at those versions.
-Danny
Patrick,
Although I can't find any specific documentation that definitively states it is not supported, looking at the documentation for "Scripting with ArcGIS Python API", the version dropdown shows version 10.4 and 10.3 grayed out, which probably means it is not supported at those versions.
-Danny
Thanks Daniel,
I guess it's best to use REST API for Portal/Server admin and scripting for version 10.4 and earlier?
Patrick,
I would say that is your best bet. You could use Portalpy for that:
GitHub - Esri/portalpy: A module that allows you to administer Portal for ArcGIS and ArcGIS Online.
This works for all versions of Portal.