<?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: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1608014#M42073</link>
    <description>&lt;P&gt;Unfortunately, we won't be able to handle this particular scenario with a webhook event.&lt;/P&gt;&lt;P&gt;Internally, the user doesn't as much&amp;nbsp;&lt;EM&gt;join&lt;/EM&gt; the group, as they're&amp;nbsp;&lt;EM&gt;simply allowed&lt;/EM&gt;&amp;nbsp;&lt;EM&gt;in&amp;nbsp;&lt;/EM&gt;based on the AD permissions. If we were able to support this, in theory we'd send a webhook event every time the user accessed the group (ie when the check is done).&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2025 13:13:47 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2025-04-22T13:13:47Z</dc:date>
    <item>
      <title>How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1479162#M39599</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I've set up SAML authentication for ArcGIS Enterprise where users can join automatically with a default Viewer user type.&lt;/P&gt;&lt;P&gt;I'm trying now to set up an organization webook. The idea is that when a SAML user is added to a specific Portal group (through SAML based group membership), a webhook is triggered to promote the user type from Viewer to Creator (and role from Viewer to Editor)&lt;/P&gt;&lt;P&gt;In /portal/sharing/rest you can do a http POST request to update the UserType as follows:&amp;nbsp;&lt;A href="https://FQDN/portal/sharing/rest/portals/0123456789ABCDEF/updateUserLicenseType" target="_blank" rel="noopener"&gt;https://FQDN/portal/sharing/rest/portals/0123456789ABCDEF/updateUserLicenseType&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've configured the webhook in ArcGIS Enterprise succesfully, but I'm struggling now in PowerAutomate with the authentication against /portal/sharing/rest&lt;/P&gt;&lt;P&gt;I tried to authenticate by setting Authentication Type to Basic and providing the portaladmin credentials&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilippeVDV_0-1716833787383.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105457i3517C44AF152B05B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhilippeVDV_0-1716833787383.png" alt="PhilippeVDV_0-1716833787383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Next, I execute the http POST request as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilippeVDV_3-1716834219602.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105460i80B1B761C3564D3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhilippeVDV_3-1716834219602.png" alt="PhilippeVDV_3-1716834219602.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But this doesn't seem to work&lt;/P&gt;&lt;P&gt;The webhook receiver is triggered succesfully when a user is added to the group, but it seems that the authentication goes wrong against /portal/sharing/rest, because I receive a 403 error: "You do not have permissions to access this resource or perform this operation"&lt;/P&gt;&lt;P&gt;So basically my question is, how do you authenticate agains /portal/sharing/rest so that you can execute all the available POST requests&lt;/P&gt;&lt;P&gt;I'm not a developer, but I hope that this should be possible in some way? All ideas or sample code are welcome (preferably in Power Automate)&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 18:34:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1479162#M39599</guid>
      <dc:creator>PhilippeVDV</dc:creator>
      <dc:date>2024-05-27T18:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1479166#M39601</link>
      <description>&lt;P&gt;I'm not real sure what thing in Power Automate your first screen shot is from, but I'll guess it's not what you want to use / it doesn't authenticate like you want.&lt;/P&gt;&lt;P&gt;Try making an HTTP Post call to&amp;nbsp;&lt;STRONG&gt;generateToken:&amp;nbsp;&lt;/STRONG&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token/" target="_blank"&gt;https://developers.arcgis.com/rest/users-groups-and-items/generate-token/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That should return a token, which you can then use on all your calls that require authentication. In my screen shot I get a token, parse it from the response, and make use of as a header on all my calls back to the Portal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 18:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1479166#M39601</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2024-05-27T18:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1480039#M39619</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1095"&gt;@KevinHibma&lt;/a&gt;&amp;nbsp;, thanks a lot for your feedback! Following your instructions I was able to create the webhook that increases the User Type and Role when a user is added manually to a certain group. This works perfect now.&lt;/P&gt;&lt;P&gt;However, my webhook doesn't seem to work when a SAML user is added automatically to a Portal group that was created based on SAML based group membership.&lt;/P&gt;&lt;P&gt;I tested both with&amp;nbsp;&lt;SPAN&gt;/groups/&amp;lt;groupID&amp;gt;/addUsers and the more general /groups/&amp;lt;groupID&amp;gt; but when a SAML user authenticates the first time and is added automatically to the group it doesn't seem to trigger anything. Any idea how to solve this?&lt;BR /&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 11:43:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1480039#M39619</guid>
      <dc:creator>PhilippeVDV</dc:creator>
      <dc:date>2024-05-29T11:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1480138#M39620</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/55173"&gt;@PhilippeVDV&lt;/a&gt;&amp;nbsp;Interesting timing. I've been working on this exact question this week. Today, you're correct, no webhook is triggered when a SAML user has been added to the group by based on group membership. Internally, different "things" are happening with the add user / authentication checks and calls when going this route compared to adding a built-in user to a group. I'm investigating if we're able to support this scenario. For now, I do not believe there are any workarounds.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 13:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1480138#M39620</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2024-05-29T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1480210#M39621</link>
      <description>&lt;P&gt;Thanks again for your feedback&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1095"&gt;@KevinHibma&lt;/a&gt;&amp;nbsp;. I opened a support case in parallel, and apparently an enhancement request was logged very recently:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ENH-000166912 &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;- Portal organization webhook: Add capability to trigger /addUser and /removeUser events for group members who joined based on (AD) SAML-based membership&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And got also this information: "&lt;EM&gt;This is because those users are automatically enlisted as a member of the group because that was the prerequisite (that they can join because they're a member of a particular designated SAML Group). Sharing, unsharing, and deleting items from the group does trigger an event. &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;A workaround for this, if they want to be alerted when such a user joins that group, would be to just have them share something immediately after joining.&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I did not test the workaround yet&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 14:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1480210#M39621</guid>
      <dc:creator>PhilippeVDV</dc:creator>
      <dc:date>2024-05-29T14:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1480242#M39622</link>
      <description>&lt;P&gt;That's exactly the enhancement request I'm evaluating. I need to see if its technically possible before accepting/rejecting. I hope to have that question figured out soon. If we can do it, we'll try to address in an upcoming release.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 15:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1480242#M39622</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2024-05-29T15:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1581309#M41580</link>
      <description>&lt;P&gt;Hey Kevin, any update on triggering a webhook when a user is added to a SAML group? I've been trying to implement this exact workflow (Assign licenses when a user is automatically added to a SAML group). Assigning licenses for an organization our size takes up a substantial amount of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My workaround (not optimal, but going to make it work):&lt;/P&gt;&lt;P&gt;Using FME Server to run on a schedule a couple times a day and, for example, query members of our Mobile Workers Group (portal SAML group) and compare that to current assigned licenses. Then I can assign/remove licenses depending on the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might work for us, but it screams inefficiency.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 14:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1581309#M41580</guid>
      <dc:creator>DougYurek</dc:creator>
      <dc:date>2025-02-03T14:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1581369#M41581</link>
      <description>&lt;P&gt;Thanks for the poke on this&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/211274"&gt;@DougYurek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Back when I initially responded we began looking at it, but this was near the end of a release and it was much more complicated than we anticipated, and had to defer it.&lt;/P&gt;&lt;P&gt;I have some time still in our current development cycle, so I'll get the team to take another look and see if we can make some progress on it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 16:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1581369#M41581</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2025-02-03T16:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1608011#M42072</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1095"&gt;@KevinHibma&lt;/a&gt;&amp;nbsp;, will it be implemented in the 11.5 release or not yet? Best regards, Phil&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 13:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1608011#M42072</guid>
      <dc:creator>PhilippeVDV</dc:creator>
      <dc:date>2025-04-22T13:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1608014#M42073</link>
      <description>&lt;P&gt;Unfortunately, we won't be able to handle this particular scenario with a webhook event.&lt;/P&gt;&lt;P&gt;Internally, the user doesn't as much&amp;nbsp;&lt;EM&gt;join&lt;/EM&gt; the group, as they're&amp;nbsp;&lt;EM&gt;simply allowed&lt;/EM&gt;&amp;nbsp;&lt;EM&gt;in&amp;nbsp;&lt;/EM&gt;based on the AD permissions. If we were able to support this, in theory we'd send a webhook event every time the user accessed the group (ie when the check is done).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 13:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1608014#M42073</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2025-04-22T13:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle authentication against /portal/sharing/rest in PowerAutomate webhook receiver?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1608398#M42080</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1095"&gt;@KevinHibma&lt;/a&gt;&amp;nbsp;, thanks for your reply. That's really a pitty. Isn't there any other event that could be used to trigger a webhook that increases the user type? Although technically a SAML or AD user doesn't 'join' a group, the number of members in the memberlist of the group changes when a SAML/AD user 'enters' the group. But&amp;nbsp; a change in the number of group members isn't an event unfortunately. Would that be something that could be implemented in the future? Let me clarify our use case: we fully automated our user management after a SAML integration between ArcGIS Enterpise and a custom IdP. All groups in Portal are based on SAML based group membership and named user accounts are created automatically. The default user type is Viewer but of course, users in certain groups need higher user types (Contributor or Creator). The only way we can automate this is to run a script based on the ArcGIS API for Python that prints all users in a certain group with a certain ID and increases the user type for these users. But then there's always a delay: after someone logs on for the first time he/she should wait before they can start editing until the script has run. Not ideal. A webhook would be nicer. But then we lack an appropriate event trigger for SAML/AD users 'joining' automatically.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 08:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-handle-authentication-against-portal/m-p/1608398#M42080</guid>
      <dc:creator>PhilippeVDV</dc:creator>
      <dc:date>2025-04-23T08:58:57Z</dc:date>
    </item>
  </channel>
</rss>

