<?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 ArcGIS API for Python - Group Manager - Create - 403 Error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-group-manager-create-403/m-p/1076140#M6329</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;I would like to use the migration abilities of the API however after the migration.create is called, I receive a 403 error.&amp;nbsp; I have not idea why the error, I can do other things, such as search and get the item id for the group.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;BR /&gt;gisconn&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= GIS(user etc)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gp&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;gisconn&lt;/SPAN&gt;&lt;SPAN&gt;.groups.get('someid'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;gp&lt;/SPAN&gt;&lt;SPAN&gt;.migration.create(&lt;/SPAN&gt;&lt;SPAN&gt;items&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get_map_ids&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;future&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;) #produces 403&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;error&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 1319, in create&lt;BR /&gt;res = self._gis._con.post(url, params)&lt;BR /&gt;File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 720, in post&lt;BR /&gt;force_bytes=kwargs.pop('force_bytes', False))&lt;BR /&gt;File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 514, in _handle_response&lt;BR /&gt;self._handle_json_error(data['error'], errorcode)&lt;BR /&gt;File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 536, in _handle_json_error&lt;BR /&gt;raise Exception(errormessage)&lt;BR /&gt;Exception: You do not have permissions to access this resource or perform this operation.&lt;BR /&gt;(Error Code: 403)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/error&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Jul 2021 23:51:12 GMT</pubDate>
    <dc:creator>LouieRowley</dc:creator>
    <dc:date>2021-07-06T23:51:12Z</dc:date>
    <item>
      <title>ArcGIS API for Python - Group Manager - Create - 403 Error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-group-manager-create-403/m-p/1076140#M6329</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;I would like to use the migration abilities of the API however after the migration.create is called, I receive a 403 error.&amp;nbsp; I have not idea why the error, I can do other things, such as search and get the item id for the group.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;BR /&gt;gisconn&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= GIS(user etc)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gp&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;gisconn&lt;/SPAN&gt;&lt;SPAN&gt;.groups.get('someid'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;gp&lt;/SPAN&gt;&lt;SPAN&gt;.migration.create(&lt;/SPAN&gt;&lt;SPAN&gt;items&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;self&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get_map_ids&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;future&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;) #produces 403&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;error&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 1319, in create&lt;BR /&gt;res = self._gis._con.post(url, params)&lt;BR /&gt;File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 720, in post&lt;BR /&gt;force_bytes=kwargs.pop('force_bytes', False))&lt;BR /&gt;File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 514, in _handle_response&lt;BR /&gt;self._handle_json_error(data['error'], errorcode)&lt;BR /&gt;File "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 536, in _handle_json_error&lt;BR /&gt;raise Exception(errormessage)&lt;BR /&gt;Exception: You do not have permissions to access this resource or perform this operation.&lt;BR /&gt;(Error Code: 403)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/error&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jul 2021 23:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-group-manager-create-403/m-p/1076140#M6329</guid>
      <dc:creator>LouieRowley</dc:creator>
      <dc:date>2021-07-06T23:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python - Group Manager - Create - 403 Error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-group-manager-create-403/m-p/1076152#M6330</link>
      <description>&lt;P&gt;This error?&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzNjM5OQ==" target="_blank"&gt;BUG-000136399: The error message, “Error Code: 403 Access to admin .. (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;don't know it applies, but there is a suggested workaround&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 00:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-group-manager-create-403/m-p/1076152#M6330</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-07-07T00:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python - Group Manager - Create - 403 Error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-group-manager-create-403/m-p/1076337#M6333</link>
      <description>&lt;P&gt;Thanx Dan and I hope you are sort of relaxing.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I am sure that this is related.&amp;nbsp; In this case I am not using the a domain user in the login but it may be the user that is being used to access the internet, that is referenced here.&amp;nbsp; I have no idea where I could alter that user other than using the proxy option, which I have already tried; something like below.&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;BR /&gt;portal = "&lt;A href="https://azure.myserver/portal" target="_blank"&gt;https://azure.myserver/portal&lt;/A&gt;"&lt;BR /&gt;userid = "enterprise_admin"&lt;BR /&gt;pwd = "enterprise_admin_pwd"&lt;BR /&gt;gis_init =r"MYUSERNAME:userpassword@255.255.255.255"&lt;BR /&gt;gisconn=gis(portal,userid,pwd,proxy_host=gis_init, proxy_port=8080)&lt;BR /&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 16:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-group-manager-create-403/m-p/1076337#M6333</guid>
      <dc:creator>LouieRowley</dc:creator>
      <dc:date>2021-07-07T16:15:40Z</dc:date>
    </item>
  </channel>
</rss>

