<?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: invite_users() method to add external users to groups in ArcGIS Online portal not working in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1652828#M11678</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/686002"&gt;@DeirdreSmyth&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/921518"&gt;@MTracy1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies on the delay, I'm just coming back to this after a busy period.&lt;/P&gt;&lt;P&gt;I tried testing this and think there is a slight formatting issue within the code.&lt;/P&gt;&lt;P&gt;At the end we are passing the username into the invite_users method directly as a string.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for group in AddToGroups:
    result = group.invite_users(userN)
    print(result)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead we need to pass this through as a list based on the sample in the &lt;A href="https://developers.arcgis.com/python/latest/guide/accessing-and-managing-groups/#:~:text=CSV%20owner%3AArcGISPyAPIBot%3E%5D-,Adding%20users%20to%20the%20group,-Now%20our%20group" target="_self"&gt;documentation&lt;/A&gt;.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for group in AddToGroups:
    result = group.invite_users([userN])
    print(result)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that fixes things, please let me know if not and we can look further.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2025 15:31:43 GMT</pubDate>
    <dc:creator>David_McRitchie</dc:creator>
    <dc:date>2025-09-24T15:31:43Z</dc:date>
    <item>
      <title>invite_users() method to add external users to groups in ArcGIS Online portal not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1502360#M10310</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I have set up some code to be able to add a single user to multiple groups in arcgis online.&amp;nbsp; This works fine when using the add_users() or the invite_users() methods for an internal user but when I try to do it for an external user with the invite_users() method it doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method returns the value 'True' but it doesn't actually do anything.&amp;nbsp; I have sent invitations to the same user using the button on the group page so the user and group are setup correctly.&lt;/P&gt;&lt;P&gt;Is it possible to add external users to groups using python, do I need to specify that these users are external somewhere?&amp;nbsp; Any help gratefully received!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 11:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1502360#M10310</guid>
      <dc:creator>DeirdreSmyth</dc:creator>
      <dc:date>2024-07-08T11:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: invite_users() method to add external users to groups in ArcGIS Online portal not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1503043#M10318</link>
      <description>&lt;P&gt;Hey Deirdre,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we just confirm that the group has been configured for external users to be able to be added? The &lt;A href="https://doc.arcgis.com/en/arcgis-online/share-maps/create-groups.htm#:~:text=Any%20organization%27s%20members" target="_self"&gt;documentation here&lt;/A&gt; shows the setting that needs to be enabled for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 15:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1503043#M10318</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2024-07-09T15:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: invite_users() method to add external users to groups in ArcGIS Online portal not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1503639#M10328</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Yes the group is set up to allow users from any organization to join and as a test I invited the external test user to the group using the button on the group details page and they received the invitation ok so in theory it should work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dee&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 15:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1503639#M10328</guid>
      <dc:creator>DeirdreSmyth</dc:creator>
      <dc:date>2024-07-10T15:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: invite_users() method to add external users to groups in ArcGIS Online portal not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1503642#M10329</link>
      <description>&lt;P&gt;This is the code I am using:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeirdreSmyth_0-1720627309403.png" style="width: 687px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109335i82B04A6795139546/image-dimensions/687x577?v=v2" width="687" height="577" role="button" title="DeirdreSmyth_0-1720627309403.png" alt="DeirdreSmyth_0-1720627309403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Jul 2024 16:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1503642#M10329</guid>
      <dc:creator>DeirdreSmyth</dc:creator>
      <dc:date>2024-07-10T16:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: invite_users() method to add external users to groups in ArcGIS Online portal not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1509889#M10373</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50014"&gt;@David_McRitchie&lt;/a&gt;&amp;nbsp;I'm just wondering if you have any further advice on this issue? If there is anything I need to add to the above code to get it to work that you can think of please let me know, it would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Dee&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 11:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1509889#M10373</guid>
      <dc:creator>DeirdreSmyth</dc:creator>
      <dc:date>2024-07-25T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: invite_users() method to add external users to groups in ArcGIS Online portal not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1646637#M11604</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50014"&gt;@David_McRitchie&lt;/a&gt;&amp;nbsp;Was there a resolution for this question? I have an almost identical problem and script, and have verified that both the groups and user settings are configured correctly, because I can add them manually one at a time. Is the API capable of searching external orgs for either an external username or the external user's associated email?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 20:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1646637#M11604</guid>
      <dc:creator>MTracy1</dc:creator>
      <dc:date>2025-08-28T20:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: invite_users() method to add external users to groups in ArcGIS Online portal not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1652828#M11678</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/686002"&gt;@DeirdreSmyth&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/921518"&gt;@MTracy1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies on the delay, I'm just coming back to this after a busy period.&lt;/P&gt;&lt;P&gt;I tried testing this and think there is a slight formatting issue within the code.&lt;/P&gt;&lt;P&gt;At the end we are passing the username into the invite_users method directly as a string.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for group in AddToGroups:
    result = group.invite_users(userN)
    print(result)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead we need to pass this through as a list based on the sample in the &lt;A href="https://developers.arcgis.com/python/latest/guide/accessing-and-managing-groups/#:~:text=CSV%20owner%3AArcGISPyAPIBot%3E%5D-,Adding%20users%20to%20the%20group,-Now%20our%20group" target="_self"&gt;documentation&lt;/A&gt;.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for group in AddToGroups:
    result = group.invite_users([userN])
    print(result)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully that fixes things, please let me know if not and we can look further.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 15:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1652828#M11678</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2025-09-24T15:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: invite_users() method to add external users to groups in ArcGIS Online portal not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1653307#M11682</link>
      <description>&lt;P&gt;Hi David! Thanks for your reply. My understanding is that in order to add external users, emails would be required and not usernames(?). The problem is that when I try it nothing happens - invites do not get sent.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've been able to use my script to add internal users from a list just fine. I had more complex sections to check and see if the list contained members already present, check for valid email address formats, separate sections for adding users and for inviting users, and it does not work on external users at all. Which is why I was asking if the API is capable of sending invites to external users. As an aside, it isn't possible to query a group for pending invites, so there isn't any way to validate it other than asking my external users directly, and their patience for this effort is not limitless.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dummy values here:&lt;/P&gt;&lt;P&gt;#get groups&lt;BR /&gt;groupids = ['groupid1', 'groupid2'&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;#list of members to add&lt;BR /&gt;users = ['user1@organization.com',&amp;nbsp;'user2@organization.com'&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;#add everyone&lt;BR /&gt;for group in groupids:&lt;BR /&gt;grp = gis.groups.get(group)&lt;BR /&gt;try:&lt;BR /&gt;result = grp.invite_users(users)&lt;BR /&gt;print (result)&lt;BR /&gt;except Exception as e:&lt;BR /&gt;print ('\tNo access to '+ grp.title)&lt;BR /&gt;print (e)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 19:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/invite-users-method-to-add-external-users-to/m-p/1653307#M11682</guid>
      <dc:creator>MTracy1</dc:creator>
      <dc:date>2025-09-25T19:04:39Z</dc:date>
    </item>
  </channel>
</rss>

