<?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 change the User Type License using REST API? in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1261866#M13231</link>
    <description>&lt;P&gt;Thanks so much for updating this thread with what you found.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Feb 2023 22:50:29 GMT</pubDate>
    <dc:creator>Marc_Graham</dc:creator>
    <dc:date>2023-02-26T22:50:29Z</dc:date>
    <item>
      <title>How to change the User License Type using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1179283#M12356</link>
      <description>&lt;P&gt;How can I change the &lt;STRONG&gt;User License Type&lt;/STRONG&gt; using the REST API? I searched unsuccessful for an endpoint, I suspect there should be something similar like these endpoints:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/update-user-level.htm" target="_blank" rel="noopener"&gt;&lt;FONT face="courier new,courier"&gt;/portals/self/updateUserLevel&lt;/FONT&gt;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/update-user-role.htm" target="_blank" rel="noopener"&gt;/portals/self/updateUserRole&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 02 Jun 2022 19:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1179283#M12356</guid>
      <dc:creator>Thomas_Z2</dc:creator>
      <dc:date>2022-06-02T19:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1179304#M12357</link>
      <description>&lt;P&gt;Is this what you are after?&amp;nbsp;&lt;/P&gt;&lt;P&gt;portal/sharing/rest/portals/0123456789ABCDEF/updateUserRole&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 02:39:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1179304#M12357</guid>
      <dc:creator>JohnPlunkett</dc:creator>
      <dc:date>2022-06-02T02:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1179417#M12358</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/997"&gt;@JohnPlunkett&lt;/a&gt; but I was looking for this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;/portals/self/&lt;STRONG&gt;updateUserLicenseType&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;and it looks like it exists but it is undocumented.&lt;/P&gt;&lt;P&gt;Here my findings in case someone else has a similar use case:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://gist.github.com/moosetraveller/a2e8728ecad7a2e5d1d5bd2679dfdcae" target="_self"&gt;https://gist.github.com/moosetraveller/a2e8728ecad7a2e5d1d5bd2679dfdcae&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 02 Jun 2022 12:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1179417#M12358</guid>
      <dc:creator>Thomas_Z2</dc:creator>
      <dc:date>2022-06-02T12:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1261866#M13231</link>
      <description>&lt;P&gt;Thanks so much for updating this thread with what you found.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 22:50:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1261866#M13231</guid>
      <dc:creator>Marc_Graham</dc:creator>
      <dc:date>2023-02-26T22:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291895#M13579</link>
      <description>&lt;P&gt;Hi there&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/502478"&gt;@Thomas_Z2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw your posting on the&amp;nbsp;updateUserLicenseType Rest API call, and was wondering if you would mind sharing a code snippet of sorts to help me out here. I've been trying to find the way to update a user on the fly via the back-end, and this seems to be the way to do it - and as you've mentioned, Esri have not really documented anything about it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tinkered with the url request&amp;nbsp; ../arcgis/sharing/rest/portals/self/updateUserLicenseType?... but I'm yet to find a valid url that actually works.&lt;/P&gt;&lt;P&gt;I'll also take a look at the Python approach you've mentioned, but I'd rather hit it with a Rest call to be honest.&lt;/P&gt;&lt;P&gt;Any help truly appreciated (in either Rest, or Python cases)&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 00:28:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291895#M13579</guid>
      <dc:creator>GarethFinney1</dc:creator>
      <dc:date>2023-05-23T00:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291900#M13580</link>
      <description>&lt;P&gt;Hi Gareth,&lt;/P&gt;&lt;P&gt;I have created a workflow in FME that allows users to "check out" or "return" a license without having to ask an administrator.&amp;nbsp; The workflow requires us to update the role and the license type in two steps. there are two options - if the user checks out a license I set their named user to&amp;nbsp;fieldWorkerUT and the corresponding custom role and if the user returns a license I set them to viewerUT and the corresponding custom viewer role.&lt;/P&gt;&lt;P&gt;First update License Type:&lt;/P&gt;&lt;P&gt;Request URL:&amp;nbsp;$(arcgis_portal_url)/$(arcgis_portal_webadaptor_context)/sharing/rest/portals/0123456789ABCDEF/updateUserLicenseType&lt;/P&gt;&lt;P&gt;Method: POST&lt;/P&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;token: token&lt;/LI&gt;&lt;LI&gt;users: $(portal_username)&lt;/LI&gt;&lt;LI&gt;f: pjson&lt;/LI&gt;&lt;LI&gt;userLicenseType: $(new_user_type)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;new_user_type =&amp;nbsp;fieldWorkerUT or&amp;nbsp;viewerUT&lt;/P&gt;&lt;P&gt;Second update User Role:&lt;/P&gt;&lt;P&gt;URL:&amp;nbsp;$(arcgis_portal_url)/$(arcgis_portal_webadaptor_context)/sharing/rest/portals/0123456789ABCDEF/updateUserRole&lt;/P&gt;&lt;P&gt;Method: POST&lt;/P&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;token: token&lt;/LI&gt;&lt;LI&gt;users: $(portal_username)&lt;/LI&gt;&lt;LI&gt;f: pjson&lt;/LI&gt;&lt;LI&gt;role: $(new_role)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;new_role =&amp;nbsp;7Wqt2kdDEMSska9w or&amp;nbsp;3Fg8KwpdZknhNZE6 depending upon which one matches the license type that was selected first.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcGraham2_0-1684802617488.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71361i3D39D5F5CF0C6611/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcGraham2_0-1684802617488.png" alt="MarcGraham2_0-1684802617488.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 00:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291900#M13580</guid>
      <dc:creator>Marc_Graham</dc:creator>
      <dc:date>2023-05-23T00:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291904#M13581</link>
      <description>&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;thanks for the speedy reply - much appreciated.&amp;nbsp; I'll give it a try, but I'm actually starting to think I may need to update the portal, from 10.7.x&amp;nbsp; I can't see the&amp;nbsp;&lt;SPAN&gt;/updateUserLicenseType method on the&amp;nbsp;/arcgis/sharing/rest/portals/self endpoint. Can you please confirm this, if running a newer version of Portal?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks again&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Gareth&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 00:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291904#M13581</guid>
      <dc:creator>GarethFinney1</dc:creator>
      <dc:date>2023-05-23T00:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291905#M13582</link>
      <description>&lt;P&gt;EDIT: Oh I see that is a slightly different endpoint in the documentation. I still confirmed it is there at 10.7 in our old portal:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcGraham2_0-1684803877022.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71362i6BB7EC50832385C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcGraham2_0-1684803877022.png" alt="MarcGraham2_0-1684803877022.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be there - according to the docs it was introduced at 10.7:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/user-license-types.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/user-license-types.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I can confirm that on our deprecated 10.7 portal it is there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 01:04:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291905#M13582</guid>
      <dc:creator>Marc_Graham</dc:creator>
      <dc:date>2023-05-23T01:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291907#M13583</link>
      <description>&lt;P&gt;it doesn't appear to be documented anywhere except for in relation to webhooks:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/content/dam/esrisites/en-us/events/conferences/2020/federal-gis/administering-arcgis-enterprise.pdf" target="_blank"&gt;https://www.esri.com/content/dam/esrisites/en-us/events/conferences/2020/federal-gis/administering-arcgis-enterprise.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/create-webhooks.htm" target="_blank"&gt;https://developers.arcgis.com/rest/users-groups-and-items/create-webhooks.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 01:06:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291907#M13583</guid>
      <dc:creator>Marc_Graham</dc:creator>
      <dc:date>2023-05-23T01:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the User Type License using REST API?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291908#M13584</link>
      <description>&lt;P&gt;yeah cool.. I see it now -&amp;nbsp; just needed to scroll down to the bottom of the page - doh!&lt;/P&gt;&lt;P&gt;thanks for your help on this, much appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 01:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/how-to-change-the-user-license-type-using-rest-api/m-p/1291908#M13584</guid>
      <dc:creator>GarethFinney1</dc:creator>
      <dc:date>2023-05-23T01:10:06Z</dc:date>
    </item>
  </channel>
</rss>

