<?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 Create enterprise accounts of ArcGIS Online using ArcGSI API for Python  in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-enterprise-accounts-of-arcgis-online-using/m-p/835265#M3305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Hello all,&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;I am having a difficulty of creating ArcGIS Online enterprise account using ArcGIS API for Python.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Here is the story:&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;I work in higher-ed. We use enterprise login making the workflow of logging in to AGO easier for students. However, this brings a problem. The account won't be created until the student login to AGO the first time. As an instructor, we would like to prepare materials before the lab, like creating groups, adding students to the groups and sharing materials with groups. We send emails to students before the lab, asking them to login to ArcGIS online one week before the lab. But there are always some students miss our emails. We usually have to spend the first 10-15 mins of the lab to have all the students login and are added to the group. If we can create enterprise accounts for students before labs, we won't have to go through all the workflows. This is why we want to create users automatically before labs using ArcGIS API for Python.&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;This is the piece of python script of creating an account for myself. For example, my enterprise idp username is "lr300"&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3d85c6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;student = gis.users.create(idp_username = "lr300",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;username = "lr300_BU",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;password = 'mypassword1234',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;firstname = "myfirstname",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;lastname = "mylastname",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;&lt;SPAN&gt;email = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:lr300@myorg.edu"&gt;lr300@myorg.edu&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;role = 'org_publisher',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;provider = 'enterprise')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3d85c6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3d85c6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;After I run this python script, an account "lr030_Bucknell" is created successfully(Please see attached screenshot 1). But then I try to log in to our ArcGIS Online with enterprise logint, it failed and gave me this error "&lt;SPAN style="background-color: #ffffff; color: #cc0000;"&gt;Unable to assign user 'lr300_BU' to this account 'xsh7pVZv42relbEf' , Username is not available&lt;/SPAN&gt;". (Please see the attached screenshot 2.)&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Is anyone familiar with this issue? Any ideas?&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;BR /&gt;Thank you&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Luyang&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2017 15:19:57 GMT</pubDate>
    <dc:creator>LuyangRen</dc:creator>
    <dc:date>2017-09-14T15:19:57Z</dc:date>
    <item>
      <title>Create enterprise accounts of ArcGIS Online using ArcGSI API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-enterprise-accounts-of-arcgis-online-using/m-p/835265#M3305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Hello all,&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;I am having a difficulty of creating ArcGIS Online enterprise account using ArcGIS API for Python.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Here is the story:&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;I work in higher-ed. We use enterprise login making the workflow of logging in to AGO easier for students. However, this brings a problem. The account won't be created until the student login to AGO the first time. As an instructor, we would like to prepare materials before the lab, like creating groups, adding students to the groups and sharing materials with groups. We send emails to students before the lab, asking them to login to ArcGIS online one week before the lab. But there are always some students miss our emails. We usually have to spend the first 10-15 mins of the lab to have all the students login and are added to the group. If we can create enterprise accounts for students before labs, we won't have to go through all the workflows. This is why we want to create users automatically before labs using ArcGIS API for Python.&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;This is the piece of python script of creating an account for myself. For example, my enterprise idp username is "lr300"&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3d85c6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;student = gis.users.create(idp_username = "lr300",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;username = "lr300_BU",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;password = 'mypassword1234',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;firstname = "myfirstname",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;lastname = "mylastname",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;&lt;SPAN&gt;email = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:lr300@myorg.edu"&gt;lr300@myorg.edu&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;role = 'org_publisher',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #3d85c6;"&gt;provider = 'enterprise')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3d85c6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3d85c6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;After I run this python script, an account "lr030_Bucknell" is created successfully(Please see attached screenshot 1). But then I try to log in to our ArcGIS Online with enterprise logint, it failed and gave me this error "&lt;SPAN style="background-color: #ffffff; color: #cc0000;"&gt;Unable to assign user 'lr300_BU' to this account 'xsh7pVZv42relbEf' , Username is not available&lt;/SPAN&gt;". (Please see the attached screenshot 2.)&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Is anyone familiar with this issue? Any ideas?&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&lt;BR /&gt;Thank you&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Luyang&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 15:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-enterprise-accounts-of-arcgis-online-using/m-p/835265#M3305</guid>
      <dc:creator>LuyangRen</dc:creator>
      <dc:date>2017-09-14T15:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create enterprise accounts of ArcGIS Online using ArcGSI API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-enterprise-accounts-of-arcgis-online-using/m-p/835266#M3306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luyang, we are discussing this with the ArcGIS Online team and will get back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 18:40:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-enterprise-accounts-of-arcgis-online-using/m-p/835266#M3306</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-09-15T18:40:44Z</dc:date>
    </item>
  </channel>
</rss>

