Ok, I can't use VSCode since our firewall 'upgrade' so I try to manage my online stuff in a notebook in Pro but i have this weird result:
I'm connecting as the administrator of my organisation and specifically ask for outside_org=False and still I receive a lot of random content.
What's happening here? It doesn't matter if I use import arcpy or from arcgis.gis import GIS; both give the same results.
Thank you for your time,
Bert
Solved! Go to Solution.
Hi @Gisbert61 it looks like you're logged in to the portal as an anonymous user, since you didn't provide the username and password as function arguments when connecting.
Something like this should work
gis = GIS("portal_URL", username, password)
See https://developers.arcgis.com/python/latest/guide/working-with-different-authentication-schemes/ for more information and examples
Hi @Gisbert61 it looks like you're logged in to the portal as an anonymous user, since you didn't provide the username and password as function arguments when connecting.
Something like this should work
gis = GIS("portal_URL", username, password)
See https://developers.arcgis.com/python/latest/guide/working-with-different-authentication-schemes/ for more information and examples
Calling the search function with that Organization URL is causing similar behavior as if you were calling the search function on an anonymous connection to ArcGIS Online. I don't really see why it would be doing this, as you are providing what appears to be a valid Organization URL. Have you tried connecting to this organization with a specific user, i.e. providing username and password.