<?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: Can convert the Python API to be web application in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775228#M901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what I've been working on for the past year or so.&amp;nbsp; I am building a Django application with a RestAPI to integrate with backend SQL databases from other systems.&amp;nbsp; I am running into an issue where I need to create Level 1 Viewer Users for an organization so that they can print from AGOL.&amp;nbsp; When debugging in PyCharm, it worked once then I keep getting a Runtime Error:&amp;nbsp;You do not have permissions to access this resource or perform this operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm gonna take break, then try to dig into it a little more.&amp;nbsp; Do you think that I need to create a thread or call an external script for the Python API or something to that effect so that the django system does not interfere?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During one of my debugs I was able to create a test user.&amp;nbsp; Then I deleted it through the AGOL web page.&amp;nbsp; Since then I have been unable to create one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if there are limits set on the AGOL server that would restrict how often users can be added or removed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when I try to create a user, it fails saving Unable to Create 'test_user'.&amp;nbsp; However when I search for the user I get a return but am unable to delete() it or query the privileges.&amp;nbsp; I get a permissions error and an exception is thrown.&amp;nbsp; That user is not visible in AGOL on the Organization page so I am thinking that the AGOL server might be throwing a fit or something.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have 30 Level 1 Users and 0 Free Level 2 Users, so this is to provide printing in a web app.&amp;nbsp; It would be great if I could manage these Viewers through the Python API when the print&amp;nbsp;widget&amp;nbsp;is activated.&amp;nbsp; If the user does not exist, create it.&amp;nbsp; I would then look at deleting the 5 users who have been inactive for a month if it gets full.&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;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Jun 2018 12:12:09 GMT</pubDate>
    <dc:creator>RichardHughes2</dc:creator>
    <dc:date>2018-06-24T12:12:09Z</dc:date>
    <item>
      <title>Can convert the Python API to be web application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775225#M898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to this kind of interactive working on the GIS data, can we deploy the ArcGIS Python API script like an independent Web Application can be running online?&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;Zhanping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 17:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775225#M898</guid>
      <dc:creator>ZhanpingShi1</dc:creator>
      <dc:date>2017-02-02T17:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can convert the Python API to be web application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775226#M899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an interesting thought. We have quite a few projects along these lines. Are you proposing something along the lines of&amp;nbsp;&lt;A href="https://try.jupyter.org/"&gt;https://try.jupyter.org/&lt;/A&gt;?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 17:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775226#M899</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-02-02T17:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can convert the Python API to be web application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775227#M900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use the Python API in a&amp;nbsp;Python Web framework like Django to create a web application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 19:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775227#M900</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-02-06T19:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can convert the Python API to be web application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775228#M901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what I've been working on for the past year or so.&amp;nbsp; I am building a Django application with a RestAPI to integrate with backend SQL databases from other systems.&amp;nbsp; I am running into an issue where I need to create Level 1 Viewer Users for an organization so that they can print from AGOL.&amp;nbsp; When debugging in PyCharm, it worked once then I keep getting a Runtime Error:&amp;nbsp;You do not have permissions to access this resource or perform this operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm gonna take break, then try to dig into it a little more.&amp;nbsp; Do you think that I need to create a thread or call an external script for the Python API or something to that effect so that the django system does not interfere?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During one of my debugs I was able to create a test user.&amp;nbsp; Then I deleted it through the AGOL web page.&amp;nbsp; Since then I have been unable to create one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if there are limits set on the AGOL server that would restrict how often users can be added or removed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when I try to create a user, it fails saving Unable to Create 'test_user'.&amp;nbsp; However when I search for the user I get a return but am unable to delete() it or query the privileges.&amp;nbsp; I get a permissions error and an exception is thrown.&amp;nbsp; That user is not visible in AGOL on the Organization page so I am thinking that the AGOL server might be throwing a fit or something.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have 30 Level 1 Users and 0 Free Level 2 Users, so this is to provide printing in a web app.&amp;nbsp; It would be great if I could manage these Viewers through the Python API when the print&amp;nbsp;widget&amp;nbsp;is activated.&amp;nbsp; If the user does not exist, create it.&amp;nbsp; I would then look at deleting the 5 users who have been inactive for a month if it gets full.&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;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jun 2018 12:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775228#M901</guid>
      <dc:creator>RichardHughes2</dc:creator>
      <dc:date>2018-06-24T12:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can convert the Python API to be web application</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775229#M902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hi Rohit,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;After taking that break, I was able to have the python api create the test user and remove the test user.&amp;nbsp; It really was as simple as configuring the user&amp;nbsp;roles&amp;nbsp;as "org_viewer", and the role as int(1).&amp;nbsp; In the documentation it states &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;"&lt;SPAN style="color: #4c4c4c;"&gt;By default, your org has 3 roles -&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-size: 0.875em;"&gt;org_user&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-size: 0.875em;"&gt;org_publisher&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-size: 0.875em;"&gt;org_admin"&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The role I am using is "org_viewer".&amp;nbsp; Should that also be considered a default role?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 00:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-convert-the-python-api-to-be-web-application/m-p/775229#M902</guid>
      <dc:creator>RichardHughes2</dc:creator>
      <dc:date>2018-06-28T00:44:33Z</dc:date>
    </item>
  </channel>
</rss>

