boyle.matt

Get User Folder Name Provided the Folder ID

Discussion created by boyle.matt on Jul 9, 2019
Latest reply on Aug 20, 2019 by christac

Using the ArcGIS API for Python, is there a way to get the name of a user's folder if provided the folder ID?

 

For example, one of the properties of a portal item is "ownerFolder", which returns the id of the user's folder where the portal item is housed.  This is very helpful if the user has many folders when trying to find the item.  I'd like to know the name of this folder rather than just having the id.  Is there something similar to "content.get('item_id')" that can be used to return folder properties?

 

I'm aware of arcgis.gis.User("user_name").folders ... which returns a list of dictionaries providing information about all the folders a user has.  I don't really want to cross-reference all the user's folders and then match the id, but if that's the only way...

Outcomes