<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get User Folder Name Provided the Folder ID in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/796567#M1827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how I did&amp;nbsp; it:&lt;/P&gt;&lt;P&gt;gis = GIS(urlAGOL, userName, userPass)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gisUser = arcgis.gis.User(gis, "username of person who owns folder")&lt;BR /&gt;for fld in gisUser.folders:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(fld['id'], fld['title'])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2019 19:21:58 GMT</pubDate>
    <dc:creator>TregChristopher</dc:creator>
    <dc:date>2019-08-20T19:21:58Z</dc:date>
    <item>
      <title>Get User Folder Name Provided the Folder ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/796566#M1826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcGIS API for Python, is there a way to get the name of a user's folder if provided the folder ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; This is very helpful if the user has many folders when trying to find the item.&amp;nbsp; I'd like to know the name of this folder rather than just having the id.&amp;nbsp; Is there something similar to "content.get('item_id')" that can be used to return folder properties?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; 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...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/796566#M1826</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2019-07-09T14:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Folder Name Provided the Folder ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/796567#M1827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's how I did&amp;nbsp; it:&lt;/P&gt;&lt;P&gt;gis = GIS(urlAGOL, userName, userPass)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gisUser = arcgis.gis.User(gis, "username of person who owns folder")&lt;BR /&gt;for fld in gisUser.folders:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(fld['id'], fld['title'])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 19:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/796567#M1827</guid>
      <dc:creator>TregChristopher</dc:creator>
      <dc:date>2019-08-20T19:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Folder Name Provided the Folder ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/1479190#M10070</link>
      <description>&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/retrieve-the-folder-name-in-which-a-certain-item-exists-000028966" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/retrieve-the-folder-name-in-which-a-certain-item-exists-000028966&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 21:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/1479190#M10070</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2024-05-27T21:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Folder Name Provided the Folder ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/1668292#M11790</link>
      <description>&lt;LI-CODE lang="python"&gt;# GIS Connection
gis = GIS(portalurl,username,password,verify_cert=False)

# Get user and folders (user = gis.users.get(owner))
user = gis.users.get(username)
source_folders = user.folders 

for folder in source_folders:
    # Access properties using dot notation for 'title'
    logger.info(f"Folder Name: {folder.name}")
    # If you need to see all available attributes, you can print dir(folder)
    # print(dir(folder))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Nov 2025 19:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/1668292#M11790</guid>
      <dc:creator>kurtia</dc:creator>
      <dc:date>2025-11-24T19:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Folder Name Provided the Folder ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/1681001#M11841</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/819508"&gt;@kurtia&lt;/a&gt;&amp;nbsp;thank you for the example code. I used to use folder['title'] in my scripts and now that no longer works. Apparently folder.name is the way to do it now.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 23:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-user-folder-name-provided-the-folder-id/m-p/1681001#M11841</guid>
      <dc:creator>Joshua-Young</dc:creator>
      <dc:date>2026-01-29T23:45:29Z</dc:date>
    </item>
  </channel>
</rss>

