AnsweredAssumed Answered

Obtain a list of all ArcGIS Online content for an organization using the REST API?

Question asked by edaniel77 on Feb 12, 2015
Latest reply on Apr 17, 2017 by sdelfavero_usfs

I'm looking for a way to retrieve all the items (web map, feature service, map service, geocoding service, etc) shared within an organization's ArcGIS Online account.  I would think this is not that uncommon of a request, but I have not been able to find any examples on how this can be accomplished.

 

I'm using OAuth 2 authentication and can successfully get a valid token for the user.  I see that I can use https:www.arcgis.com/sharing/rest/content/users/<username> to get all the items owned by the user, but I'm interested in all items available to this user for the organization.  Items created by others in the org and either shared within the org or shared publicly.

 

I've looked into the https:www.arcgis.com/sharing/rest/portals/self but that is also not providing all the content available to the user.

 

Basically, I'm looking for a programmatic way using the REST API to obtain all the content that is available to the user if they were to login to their organization's AGOL account and go under Gallery>>My Organization's Featured Content.

 

Any suggestions would be appreciated.  Thanks.

Outcomes