<?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 Can I use the ArcGIS REST API createUser in AGOL? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/can-i-use-the-arcgis-rest-api-createuser-in-agol/m-p/579712#M29051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #201f1e; background-color: #ffffff; border: 0px;"&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="border: 0px; color: purple; background: white; font-weight: inherit; text-decoration: underline; font-size: 12pt; "&gt;&lt;A data-auth="Verified" href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.arcgis.com%2Fsharing%2Frest%2Foauth2%2FcreateUser%3Fusername%3Dmiketest42%26password%3Dtest1234%26firstname%3DMike%26lastname%3DTest%26role%3Dorg_user%26userLicenseTypeId%3DcreatorUT%26email%3Dmiketest41%40gmail.com%26provider%3Darcgis%26idpUsername%3D%26description%3DCreator%2Baccount%2Bfor%2BMike%26f%3Djson&amp;amp;data=02%7C01%7Cmh2%40usf.edu%7C1fed3e17392a4617b4c808d7f05e8354%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C0%7C637242161034234047&amp;amp;sdata=TD0CC8%2Fl7ZgMdGFNg9d3WrqXJjeZMan42SwBu6ZTfAs%3D&amp;amp;reserved=0" rel="noopener noreferrer" style="border: 0px;" target="_blank" title="Original URL: https://www.arcgis.com/sharing/rest/oauth2/createUser?username=miketest42&amp;amp;password=test1234&amp;amp;firstname=Mike&amp;amp;lastname=Test&amp;amp;role=org_user&amp;amp;userLicenseTypeId=creatorUT&amp;amp;email=miketest41@gmail.com&amp;amp;provider=arcgis&amp;amp;idpUsername=&amp;amp;description=Creator+account+for+Mike&amp;amp;f=json. Click or tap if you trust this link."&gt;&lt;SPAN style="color: purple; border: 0px; font-weight: inherit; font-size: inherit;"&gt;https://www.arcgis.com/sharing/rest/oauth2/createUser?username=miketest42&amp;amp;password=test1234&amp;amp;firstname=Mike&amp;amp;lastname=Tester&amp;amp;role=org_user&amp;amp;userLicenseTypeId=creatorUT&amp;amp;email=miketest41@gmail.com&amp;amp;provider=arcgis&amp;amp;idpUsername=&amp;amp;description=Creator+account+for+Mike&amp;amp;f=json&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #201f1e; background-color: #ffffff; border: 0px;"&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;I do get back a 200 OK but the account is not created ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;I'm trying to create a hub community user so they can take a survey but we don't want them to have to go through the esri login pages (branding issue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;Thanks in advance &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2020 14:30:23 GMT</pubDate>
    <dc:creator>MichaelHancock</dc:creator>
    <dc:date>2020-05-05T14:30:23Z</dc:date>
    <item>
      <title>Can I use the ArcGIS REST API createUser in AGOL?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-i-use-the-arcgis-rest-api-createuser-in-agol/m-p/579712#M29051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #201f1e; background-color: #ffffff; border: 0px;"&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="border: 0px; color: purple; background: white; font-weight: inherit; text-decoration: underline; font-size: 12pt; "&gt;&lt;A data-auth="Verified" href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.arcgis.com%2Fsharing%2Frest%2Foauth2%2FcreateUser%3Fusername%3Dmiketest42%26password%3Dtest1234%26firstname%3DMike%26lastname%3DTest%26role%3Dorg_user%26userLicenseTypeId%3DcreatorUT%26email%3Dmiketest41%40gmail.com%26provider%3Darcgis%26idpUsername%3D%26description%3DCreator%2Baccount%2Bfor%2BMike%26f%3Djson&amp;amp;data=02%7C01%7Cmh2%40usf.edu%7C1fed3e17392a4617b4c808d7f05e8354%7C741bf7dee2e546df8d6782607df9deaa%7C0%7C0%7C637242161034234047&amp;amp;sdata=TD0CC8%2Fl7ZgMdGFNg9d3WrqXJjeZMan42SwBu6ZTfAs%3D&amp;amp;reserved=0" rel="noopener noreferrer" style="border: 0px;" target="_blank" title="Original URL: https://www.arcgis.com/sharing/rest/oauth2/createUser?username=miketest42&amp;amp;password=test1234&amp;amp;firstname=Mike&amp;amp;lastname=Test&amp;amp;role=org_user&amp;amp;userLicenseTypeId=creatorUT&amp;amp;email=miketest41@gmail.com&amp;amp;provider=arcgis&amp;amp;idpUsername=&amp;amp;description=Creator+account+for+Mike&amp;amp;f=json. Click or tap if you trust this link."&gt;&lt;SPAN style="color: purple; border: 0px; font-weight: inherit; font-size: inherit;"&gt;https://www.arcgis.com/sharing/rest/oauth2/createUser?username=miketest42&amp;amp;password=test1234&amp;amp;firstname=Mike&amp;amp;lastname=Tester&amp;amp;role=org_user&amp;amp;userLicenseTypeId=creatorUT&amp;amp;email=miketest41@gmail.com&amp;amp;provider=arcgis&amp;amp;idpUsername=&amp;amp;description=Creator+account+for+Mike&amp;amp;f=json&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #201f1e; background-color: #ffffff; border: 0px;"&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;I do get back a 200 OK but the account is not created ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;I'm trying to create a hub community user so they can take a survey but we don't want them to have to go through the esri login pages (branding issue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;Thanks in advance &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2020 14:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-i-use-the-arcgis-rest-api-createuser-in-agol/m-p/579712#M29051</guid>
      <dc:creator>MichaelHancock</dc:creator>
      <dc:date>2020-05-05T14:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the ArcGIS REST API createUser in AGOL?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-i-use-the-arcgis-rest-api-createuser-in-agol/m-p/579713#M29052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/402277"&gt;Michael Hancock&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not super familiar with the REST API for ArcGIS Online however are you doing this with a POST or GET? I believe you will need to POST the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use python which is my preferred way of doing this sort of thing:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("&lt;SPAN style="color: #ff0000;"&gt;portal url&lt;/SPAN&gt;", "&lt;SPAN style="color: #ff0000;"&gt;username&lt;/SPAN&gt;", "&lt;SPAN style="color: #ff0000;"&gt;password&lt;/SPAN&gt;")&lt;BR /&gt;new_user = gis.users.create(username = 'miketest42',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password = 'test1234',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstname = 'Mike',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastname = 'Test',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; email = 'miketest41@gmail.com',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description = 'Demonstrating how to create users using ArcGIS Python API',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; role = 'org_user',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; level = 1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; provider = 'arcgis')&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You should just need to update the bits in red. The python API uses the REST API but it has better documentation and lots of examples!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;EM&gt;If this answer was helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2020 23:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-i-use-the-arcgis-rest-api-createuser-in-agol/m-p/579713#M29052</guid>
      <dc:creator>BenTurrell</dc:creator>
      <dc:date>2020-05-05T23:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the ArcGIS REST API createUser in AGOL?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-i-use-the-arcgis-rest-api-createuser-in-agol/m-p/579714#M29053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp;Ben, yes I am using POST and&amp;nbsp; using a token in the authentication header (OAuth 2.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try the Python API ... is there also a JavaScript API ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second part to my question: Is there a way to redirect our uses to our hub site and log them in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping something like&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #201f1e; background-color: #ffffff; border: 0px;"&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&amp;nbsp;&lt;A href="https://our-hub-site.hub.arcgis.com?id=&amp;lt;userGeneratedToken&amp;gt;"&gt;https://our-hub-site.hub.arcgis.com?id=&amp;lt;userGeneratedToken&amp;gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;or&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;/P&gt;&lt;P class="" style="font-size: 11pt; margin: 0in 0in 0.0001pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://our-hub-site.hub.arcgis.com/?id=%3CuserGeneratedToken%3E" style="color: #2989c5; background-color: #ffffff; text-decoration: none;"&gt;https://our-hub-site.hub.arcgis.com?auth_token=&amp;lt;userGeneratedToken&amp;gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would work but it just appears to hang on the rotating square ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this even possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any further input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 16:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-i-use-the-arcgis-rest-api-createuser-in-agol/m-p/579714#M29053</guid>
      <dc:creator>MichaelHancock</dc:creator>
      <dc:date>2020-05-06T16:51:45Z</dc:date>
    </item>
  </channel>
</rss>

