Select to view content in your preferred language

list content for group

03-29-2018 11:00 AM
New Contributor II

I want to list all the feature layers for a group, and export them to a csv file.

But I received an authentication error when I try to list the content for the group

(I am not signed into the site. It is a public access site.)


from arcgis.gis import GIS

groups ='title:Mygroup')


groups1 = groups[0]




1 Reply
Esri Contributor

Is the GIS using Integrated Windows Authentication (IWA)?

"If no url is provided, ArcGIS Online is used. If username/password or key/cert files are not provided, the currently logged-in user’s credentials (IWA) or anonymous access is used."


If you would use this syntax on an IWA secured portal, it would try to authenticate with your current credentials and might fail.

print("\n\nIntegrated Windows Authentication using NTLM or Kerberos") 
gis = GIS("") 
print("Logged in as: " +‍‍‍‍‍‍
Integrated Windows Authentication using NTLM or Kerberos Logged in as: username@DOMAIN

If not, this should actually work just fine.