<?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.Notify() Exception - One or more users in the list are not allowed to receive notifications. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1109688#M6754</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464699"&gt;@ngrid_ShelbyZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you added the member to the group, did you use an email that could have security block from unknown sender?&amp;nbsp; You may have to get your IT staff to allow this member to receive email from the server.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 13:45:51 GMT</pubDate>
    <dc:creator>ABishop</dc:creator>
    <dc:date>2021-10-21T13:45:51Z</dc:date>
    <item>
      <title>Group.Notify() Exception - One or more users in the list are not allowed to receive notifications.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1109323#M6752</link>
      <description>&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;I'm attempting to send built in notifications to group members via collector using the&amp;nbsp;&lt;A title="arcgis.gis.Group.notify function" href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.Group.notify" target="_self"&gt;arcgis.gis.Group.notify function.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I created a test group, and added a single member to the group to test. When I run the code block below, I get the following exception: I don't see anywhere in our organizational configuration, or documentation online where users can be configured to receive notifications. Does anyone know how to allow users to receive notifications, or potentially offer insight as to why this error is happening?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS, Group, GroupManager
gis = GIS("home")
group = gis.groups.search('title: notify test group')
group = group[0]
group

members = group.get_members()
for user in members['users']:
    print (user)

group.notify(user, 'Notice!','Message Body', method = 'builtin', client_id= None)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Exception: Unable to send notification.
One or more users in the list are not allowed to receive notifications.
(Error Code: 400)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Oct 2021 16:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1109323#M6752</guid>
      <dc:creator>ngrid_ShelbyZ</dc:creator>
      <dc:date>2021-10-20T16:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Group.Notify() Exception - One or more users in the list are not allowed to receive notifications.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1109688#M6754</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464699"&gt;@ngrid_ShelbyZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you added the member to the group, did you use an email that could have security block from unknown sender?&amp;nbsp; You may have to get your IT staff to allow this member to receive email from the server.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 13:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1109688#M6754</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-10-21T13:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Group.Notify() Exception - One or more users in the list are not allowed to receive notifications.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1162307#M7299</link>
      <description>&lt;P&gt;We had the same issue using the Python Group.notify() api on an AGOL notebook. The error messages seem to be misleading as I didn't have to change any user settings (AGOL or email) to get this working via the RESTful api.&lt;/P&gt;&lt;P&gt;I couldn't find the ArcGIS REST API documented for groups/createNotification.&amp;nbsp;Looking at the ArcGIS JS REST library on github, I found the undocumented rest endpoint and called it directly via Python.&lt;/P&gt;&lt;P&gt;Here's the python:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests

from arcgis.gis import GIS
gis = GIS("home")

group = gis.groups.search(query='MyNotifyGroup')[0];
token = gis._con.token
url = 'https://www.arcgis.com/sharing/rest/community/groups/{}/createNotification'.format(group.groupid)

parms = {'f' : 'json',
         'users' : 'some.user@somedomain.com_somedomain',
         'subject' : 'The subject line...',
         'message' : 'This is the message body.',
         'method' : 'email',
         'token' : token
        }

response = requests.post(url, data = parms)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSON response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
	"success": true
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The notification shows in the alert area on the user's AGOL banner:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joe_b_0-1649360767773.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38380iEC375317CCD69983/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joe_b_0-1649360767773.png" alt="joe_b_0-1649360767773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In theory, SMTP is blocked from Python notebooks, so maybe the missing email is related to that restriction.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 20:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1162307#M7299</guid>
      <dc:creator>joe_b</dc:creator>
      <dc:date>2022-04-07T20:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group.Notify() Exception - One or more users in the list are not allowed to receive notifications.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1256234#M8356</link>
      <description>&lt;P&gt;Calling REST directly is not necessary. The users parameter must be a list not a string.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 19:23:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1256234#M8356</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2023-02-08T19:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Group.Notify() Exception - One or more users in the list are not allowed to receive notifications.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1602951#M11301</link>
      <description>&lt;P&gt;in the line 11 you have to change this:&amp;nbsp;group.notify(user, 'Notice!','Message Body', method = 'builtin', client_id= None) to this:&amp;nbsp;group.notify([user], 'Notice!','Message Body', method = 'builtin', client_id= None) . Thr sintax requires a list object not a string object&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 19:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/group-notify-exception-one-or-more-users-in-the/m-p/1602951#M11301</guid>
      <dc:creator>OscarSolis1</dc:creator>
      <dc:date>2025-04-04T19:29:45Z</dc:date>
    </item>
  </channel>
</rss>

