<?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: Arcgis API for Python - List Group Members in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-list-group-members/m-p/776093#M952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knew it was simple. I'm just not yet proficient the structure of JSON.&lt;/P&gt;&lt;P&gt;This did it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;member = group.get_members()&lt;/P&gt;&lt;P&gt;for member in members['users']:&lt;/P&gt;&lt;P&gt;&amp;nbsp; print(member)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jun 2020 16:28:28 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-06-06T16:28:28Z</dc:date>
    <item>
      <title>Arcgis API for Python - List Group Members</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-list-group-members/m-p/776091#M950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #4c4c4c; background-color: #ffffff; border: thin solid transparent; padding: 0.5rem 0px;"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;H3&gt;This is the explanation for how to list group members in ArcGIS API for Python documentation. I don't see any way to get an actual list of group members here. When I do this on my groups, I get the words "owner" "admins" users"&lt;/H3&gt;&lt;P&gt;I feel like there is a big missing part here. Could someone help me find it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="font-size: 1.69949rem; margin: 0px 0px 0.75rem;"&gt;Listing users belonging to a group&lt;A class="" href="https://developers.arcgis.com/python/guide/accessing-and-managing-groups/#Listing-users-belonging-to-a-group" style="color: #0079c1; text-decoration: none; padding: 0px 1rem;"&gt;https://developers.arcgis.com/python/guide/accessing-and-managing-groups/#Listing-users-belonging-to-a-group&lt;/A&gt;&lt;/H3&gt;&lt;P style="margin-bottom: 1.5rem;"&gt;You can list the users in a group by calling the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-size: 0.875em;"&gt;get_members()&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;method. The method returns a dictionary that not only gives you the member list, but also the owner, admin and users.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #4c4c4c; background-color: #ffffff; border: thin solid transparent; padding: 0.5rem 0px;"&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="color: #005e95; border-top: 1px solid transparent; padding: 0.5rem;"&gt;In&amp;nbsp;[27]:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="background: #f7f7f7; border: 1px solid #cfcfcf;"&gt;&lt;DIV class="" style="background: transparent; border: none; margin: 0.5rem;"&gt;&lt;PRE style="background-color: transparent; border: none;"&gt;&lt;SPAN class=""&gt;geocaching_group&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;get_members&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="color: #338033; padding: 0.5rem;"&gt;Out[27]:&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0.5rem 0px;"&gt;&lt;PRE style="color: black; background-color: transparent; border: 0px;"&gt;{'owner': 'arcgis_python',  'admins': ['arcgis_python'],  'users': ['api_data_owner']}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 21:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-list-group-members/m-p/776091#M950</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-06-05T21:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis API for Python - List Group Members</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-list-group-members/m-p/776092#M951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;users&lt;/STRONG&gt; will be the group members:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#group" title="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#group"&gt;arcgis.gis module — arcgis 1.8.0 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/495716_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following should provide the users:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;geocaching_group&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get_members&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'users'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 23:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-list-group-members/m-p/776092#M951</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2020-06-05T23:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis API for Python - List Group Members</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-list-group-members/m-p/776093#M952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knew it was simple. I'm just not yet proficient the structure of JSON.&lt;/P&gt;&lt;P&gt;This did it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;member = group.get_members()&lt;/P&gt;&lt;P&gt;for member in members['users']:&lt;/P&gt;&lt;P&gt;&amp;nbsp; print(member)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2020 16:28:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-list-group-members/m-p/776093#M952</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-06-06T16:28:28Z</dc:date>
    </item>
  </channel>
</rss>

