<?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: Access Level Change in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794073#M1709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That worked for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2018 18:28:45 GMT</pubDate>
    <dc:creator>René_Ténière</dc:creator>
    <dc:date>2018-02-08T18:28:45Z</dc:date>
    <item>
      <title>Access Level Change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794071#M1707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to change the access level of map layers with no luck. I have used 'org' as the access value, however, it keeps showing up as private after&amp;nbsp;it is&amp;nbsp;created. Here is a code sample:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layerProperties_Wildlife = {
'title':'Wildlife Areas',
'description':'This layer contains data for moose and deer management zones, Significant Habitats, Wetlands, and Special Management Practices for Atlantic Coastal Plain Flora Buffers, Marten, Lynx, and Mainland Moose.',
'snippet':'Wildlife Areas layer',
'tags':'wildlife,wetlands,moose,deer,habitat,marten,lynx,moose,NSGI,GeoNOVA',
'licenseInfo':licInfo,
'accessInformation':'Nova Scotia Department of Natural Resources',
'type':'Map Service',
&lt;STRONG&gt;'access':'org'&lt;/STRONG&gt;,
'url':os.path.join(devURL,'BIO/'+svcName_Wildlife+'/MapServer')
}

layer = gis.content.add(item_properties=layerProperties_Wildlife, thumbnail=thumbnailPath, owner=layerOwner, folder=layerFolder)
layer.access
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;-&amp;gt;'private'&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794071#M1707</guid>
      <dc:creator>René_Ténière</dc:creator>
      <dc:date>2021-12-12T16:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Access Level Change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794072#M1708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/57373"&gt;René -&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Use the&amp;nbsp;&lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#arcgis.gis.Item.share"&gt;item.share&lt;/A&gt;, method to change the access property for the item.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;layer_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;share&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;everyone&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; org&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The method returns a dictionary with &lt;EM&gt;itemId &lt;/EM&gt;and &lt;EM&gt;notSharedWith&lt;/EM&gt; keys:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'itemId'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'&amp;lt;item ID value&amp;gt;'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'notSharedWith'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The `notSharedWith` key will list the entities on which the sharing was not successful. If the 'notSharedWith` list is empty that means the operation was a success. Next time you retrieve the item and return it's `access` property, you'll see the correct value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:25:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794072#M1708</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2018-02-08T18:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Access Level Change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794073#M1709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That worked for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794073#M1709</guid>
      <dc:creator>René_Ténière</dc:creator>
      <dc:date>2018-02-08T18:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Access Level Change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794074#M1710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you apply this on the WebMap level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794074#M1710</guid>
      <dc:creator>René_Ténière</dc:creator>
      <dc:date>2018-02-08T18:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access Level Change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794075#M1711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that worked, &lt;A href="https://community.esri.com/migrated-users/57373" target="_blank"&gt;René -&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Updating the access property for a Web Map would look the exact same. Retrieve the Web Map Item from your portal and use the share method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;search_results &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; a_gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; item_type &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Web Map"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
web_map_item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; search_results&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;#use the appropriate index value for the Web Map you want to update&lt;/SPAN&gt;
web_map_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;share&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;everyone&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; org&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; groups&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'group name 1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'group name 2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794075#M1711</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2021-12-12T09:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Access Level Change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794076#M1712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That worked as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/access-level-change/m-p/794076#M1712</guid>
      <dc:creator>René_Ténière</dc:creator>
      <dc:date>2018-02-08T18:55:48Z</dc:date>
    </item>
  </channel>
</rss>

