I feel like there is a big missing part here. Could someone help me find it?
Thank you,
Randy McGregor
You can list the users in a group by calling the get_members() method. The method returns a dictionary that not only gives you the member list, but also the owner, admin and users.
get_members()
geocaching_group.get_members()
{'owner': 'arcgis_python', 'admins': ['arcgis_python'], 'users': ['api_data_owner']}
Hi Randy,
The users will be the group members:
arcgis.gis module — arcgis 1.8.0 documentation
The following should provide the users:
geocaching_group<SPAN class="punctuation token">.</SPAN>get_members<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="string token">'users'</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Thank you!
I knew it was simple. I'm just not yet proficient the structure of JSON.
This did it:
member = group.get_members()
for member in members['users']:
print(member)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.