Select to view content in your preferred language

weird results when expecting my own stuff in notebook

203
2
Jump to solution
a week ago
Gisbert61
Frequent Contributor

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:

Gisbert61_0-1756216751374.png

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

 

 

0 Kudos
1 Solution

Accepted Solutions
PeterHodkinson
Esri Contributor

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

View solution in original post

2 Replies
PeterHodkinson
Esri Contributor

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

AustinAverill
Frequent Contributor

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.