<?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: Is it possible to get email addresses for all members of a group? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1380994#M9646</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/600558"&gt;@NanaeAubry&lt;/a&gt;&amp;nbsp;Is this solution available? We would really like to generate a list of all the users in our org that are affiliated with other organizations.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 13:51:45 GMT</pubDate>
    <dc:creator>santamariaa</dc:creator>
    <dc:date>2024-02-12T13:51:45Z</dc:date>
    <item>
      <title>Is it possible to get email addresses for all members of a group?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/776259#M974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My organization has a Survey123 survey that is shared with a specific group&amp;nbsp;in our ArcGIS Online organization.&amp;nbsp; There are dozens of people with whom the survey has been shared, but we now need to reach out to them to inform them of a change to the survey.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Not all of the members of the group are members of our ArcGIS Online organization; the group contains members from outside organizations.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From looking at the Python API, we suspect it is possible to get a list of all the group members who are members of the organization, but not the folks who are not in the org.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get a list (including email contact information) for group members who are both inside and outside of our ArcGIS Online organization?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;BR /&gt;Lindsay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 00:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/776259#M974</guid>
      <dc:creator>LindsayKing1</dc:creator>
      <dc:date>2019-04-11T00:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get email addresses for all members of a group?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/776260#M975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lindsay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are right in stating that it is not possible to retrieve the email addresses of members of a group who are not member of your organisation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I wrote a script to get an overview of group membership in an AGOL organization, but I had to jump over all group members outside the organization to avoid the error message&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit;"&gt;"You do not have permissions to access this resource or perform this operation."&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the link below for the script (which does not solve your issue):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/EPolle_TensingInternational/blog/2019/03/21/a-quick-overview-of-group-membership-in-your-agol-organization"&gt;https://community.esri.com/people/EPolle_TensingInternational/blog/2019/03/21/a-quick-overview-of-group-membership-in-your-agol-organization&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curious what the solution would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 08:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/776260#M975</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2019-04-11T08:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get email addresses for all members of a group?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1127880#M6931</link>
      <description>&lt;P&gt;Would be great if Esri allowed/fixed this. We have the same, a group with a mix of internal and external users (invited to the group) and we need to send comms/update notifications.&lt;/P&gt;&lt;P&gt;If anything it appears the API might have gotten worse as I don't get the error&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/97279"&gt;@EvaHeggem&lt;/a&gt;&amp;nbsp;got when I try to retrieve the email for a member outside of our organisation. Instead I get the following with v1.8.1 of the API, when I hit a user who is outside our organisation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Traceback (most recent call last):
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 6668, in __getattr__
    return dict.__getitem__(self, name)
KeyError: 'email'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\user\OneDrive\Python\Proxy_Testing_Pro2_8.py", line 71, in &amp;lt;module&amp;gt;
    print(userDetails.email)
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 6670, in __getattr__
    raise AttributeError("'%s' object has no attribute '%s'" % (type(self).__name__, name))
AttributeError: 'User' object has no attribute 'email'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 00:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1127880#M6931</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-21T00:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get email addresses for all members of a group?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1206058#M7669</link>
      <description>&lt;P&gt;This is currently an unavailable request through the API. The Online team has this on their radar and the capability will be available in the future but unfortunately it is not available as of now.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 20:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1206058#M7669</guid>
      <dc:creator>NanaeAubry</dc:creator>
      <dc:date>2022-08-24T20:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get email addresses for all members of a group?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1380994#M9646</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/600558"&gt;@NanaeAubry&lt;/a&gt;&amp;nbsp;Is this solution available? We would really like to generate a list of all the users in our org that are affiliated with other organizations.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 13:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1380994#M9646</guid>
      <dc:creator>santamariaa</dc:creator>
      <dc:date>2024-02-12T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to get email addresses for all members of a group?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1674104#M11824</link>
      <description>&lt;P&gt;I was able to piece this together from various places. It loops through all groups in an organization and lists all the group users emails.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
org_gis = GIS("&amp;lt;organization url&amp;gt;", "&amp;lt;username&amp;gt;", "&amp;lt;password&amp;gt;")

def list_emails_in_groups(gis):
    all_groups = gis.groups.search("")
    for group in all_groups:
        print(f"{group.title}\n")
        members = group.get_members()
        for userName in members["users"]:
            user = gis.users.get(userName)
            try:
                print(user.email)
            except Exception as e:
                print(f"User '{user.username}' does not have an email.")
                pass
        print("\n\n------------\n\n")

list_emails_in_groups(org_gis)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Dec 2025 21:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/is-it-possible-to-get-email-addresses-for-all/m-p/1674104#M11824</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2025-12-18T21:40:58Z</dc:date>
    </item>
  </channel>
</rss>

