<?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: Group Category Manager in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-category-manager/m-p/1643593#M11584</link>
    <description>&lt;P&gt;I found a solution!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2025 07:35:14 GMT</pubDate>
    <dc:creator>FredericPoliart_EsriAU</dc:creator>
    <dc:date>2025-08-20T07:35:14Z</dc:date>
    <item>
      <title>Group Category Manager</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-category-manager/m-p/779586#M1125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a group in my Enterprise portal and shared about 1500 images to this group. I have been trying to write a script to assign categories to each image based on the country code in the image name. According to the ArcGIS Python API, Group objects should have a 'categories' property, but when I attempt to access this via the following (generalized) example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyGroup = portal.groups.get('GroupIdNumber')&lt;/P&gt;&lt;P&gt;MyGroup.categories&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error stating: 'Group' object has no attribute 'categories'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears I should be able to get the CategorySchemaManager through this property and then use the assign_to_items function to complete the process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can access the group and its content just fine, but I cannot seem to find a way to access the categories property in order to assign items to the categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way that I can use to assign categories to each item shared with a group?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 14:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/group-category-manager/m-p/779586#M1125</guid>
      <dc:creator>AmandaReich3</dc:creator>
      <dc:date>2020-03-06T14:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Group Category Manager</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-category-manager/m-p/1643574#M11583</link>
      <description>&lt;P&gt;Good question,&lt;BR /&gt;&lt;BR /&gt;I have the same challenge, I want to enumerate the sub-categories of a Group&amp;nbsp;&lt;BR /&gt;and then list the layers within that groups' category.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;THis code doesn't give me any object called "categories"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;base = gis._con.baseurl.rstrip(&lt;SPAN&gt;"/"&lt;/SPAN&gt;) + &lt;SPAN&gt;"/community/groups/{gid}/category"&lt;/SPAN&gt;.format(&lt;SPAN&gt;gid&lt;/SPAN&gt;=group_id)&lt;BR /&gt;params = {&lt;SPAN&gt;"f"&lt;/SPAN&gt;: &lt;SPAN&gt;"json"&lt;/SPAN&gt;, &lt;SPAN&gt;"token"&lt;/SPAN&gt;: gis._con.token}&lt;BR /&gt;r = requests.get(base, &lt;SPAN&gt;params&lt;/SPAN&gt;=params, &lt;SPAN&gt;verify&lt;/SPAN&gt;=gis._con._verify_cert)&lt;BR /&gt;r.raise_for_status()&lt;BR /&gt;data = r.json()&lt;BR /&gt;&lt;SPAN&gt;# data example has 'categorySchema' with nested nodes: {title, categories:[...]}&lt;BR /&gt;&lt;/SPAN&gt;paths = []&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;And running&amp;nbsp; &amp;nbsp;group.categories.schema[&lt;SPAN&gt;0&lt;/SPAN&gt;][&lt;SPAN&gt;'categories'&lt;/SPAN&gt;]&amp;nbsp; &amp;nbsp;seem to enumerate every category&lt;BR /&gt;&lt;BR /&gt;What I need is a programmatical (.py) method to enumerate the Portal &amp;gt; Groups &amp;gt; My Organization's Groups &amp;gt; {select the group} &amp;gt; then select Content&amp;nbsp; &amp;gt; and on the left, I see the categories with a number of layers in each.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_1-1755667926357.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/138876iF633ECCBEC8E9BC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_1-1755667926357.png" alt="FredericPoliart_EsriAU_1-1755667926357.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;HOW DO I GET THIS IN PYTHON!?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 05:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/group-category-manager/m-p/1643574#M11583</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2025-08-20T05:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Group Category Manager</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-category-manager/m-p/1643593#M11584</link>
      <description>&lt;P&gt;I found a solution!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 07:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/group-category-manager/m-p/1643593#M11584</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2025-08-20T07:35:14Z</dc:date>
    </item>
  </channel>
</rss>

