<?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: Cannot enable 'Any organization's members' setting when creating a Group or updating properties in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299612#M8787</link>
    <description>&lt;P&gt;Also just to flesh it out a bit more&lt;BR /&gt;create() and update() support the GroupManager properties listed here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.GroupManager" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.GroupManager&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Per this guide on accessing and managing groups / updating a group&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/accessing-and-managing-groups/#updating-a-group" target="_blank"&gt;https://developers.arcgis.com/python/guide/accessing-and-managing-groups/#updating-a-group&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think you're ok but maybe just that typo in membership_access.&lt;/P&gt;&lt;P&gt;Also, some other group settings may restrict your groups to members only. So if you've somehow enabled one of them, it may not give you the option to change the membership access. You can check this setting via the UI - if you can't do it there, you can't do it in python.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 11:42:41 GMT</pubDate>
    <dc:creator>ChristopherCounsell</dc:creator>
    <dc:date>2023-06-15T11:42:41Z</dc:date>
    <item>
      <title>Cannot enable 'Any organization's members' setting when creating a Group or updating properties</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299559#M8784</link>
      <description>&lt;P&gt;I am creating a group using the ArcGIS for Python API, there is limited information in the API Reference &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.GroupManager.create" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;And I found some more information in the &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm" target="_self"&gt;Rest Reference&lt;/A&gt; relating to the &lt;EM&gt;membershipAccess&lt;/EM&gt; property that it can be org | collaboration | none, and none is the default. The ArcGIS for Python API also indicates that the default is None based on the parameters for the create function.&lt;/P&gt;&lt;P&gt;The default, however, when I run the below snippet is that the &lt;EM&gt;membershipAccess&lt;/EM&gt; property is set to org.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

agol = GIS("home")

agol.groups.create(
    title = "Test_Group",
    tags = ["Test", "Group"],
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clubdebambos_0-1686817066512.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73305i6F4CE9BD55C737FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clubdebambos_0-1686817066512.png" alt="Clubdebambos_0-1686817066512.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Even if I use the update function to update the &lt;EM&gt;membershipAccess&lt;/EM&gt; to &lt;EM&gt;None&lt;/EM&gt; it does not take? What settings can I use to perform this action using the ArcGIS for Python API, or is it simply a bug?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

agol = GIS("home")

group = agol.groups.get("GROUP_ID")

group.update(
    membership_access = None # typo fixed from acess
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I set manually to &lt;EM&gt;Any organization's members&lt;/EM&gt;, and the query that property, the property does not exist, but it does exist when &lt;EM&gt;org&lt;/EM&gt; or &lt;EM&gt;collaboration&lt;/EM&gt; is set.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 12:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299559#M8784</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2023-06-15T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enable 'Any organization's members' setting when creating a Group or updating properties</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299610#M8786</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;membership_ac&lt;STRONG&gt;c&lt;/STRONG&gt;ess&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Did you drop a 'c' from access?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 11:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299610#M8786</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-06-15T11:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enable 'Any organization's members' setting when creating a Group or updating properties</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299612#M8787</link>
      <description>&lt;P&gt;Also just to flesh it out a bit more&lt;BR /&gt;create() and update() support the GroupManager properties listed here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.GroupManager" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.GroupManager&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Per this guide on accessing and managing groups / updating a group&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/accessing-and-managing-groups/#updating-a-group" target="_blank"&gt;https://developers.arcgis.com/python/guide/accessing-and-managing-groups/#updating-a-group&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think you're ok but maybe just that typo in membership_access.&lt;/P&gt;&lt;P&gt;Also, some other group settings may restrict your groups to members only. So if you've somehow enabled one of them, it may not give you the option to change the membership access. You can check this setting via the UI - if you can't do it there, you can't do it in python.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 11:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299612#M8787</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-06-15T11:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enable 'Any organization's members' setting when creating a Group or updating properties</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299627#M8788</link>
      <description>&lt;P&gt;Sorry, that was just a typo&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 12:17:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299627#M8788</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2023-06-15T12:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enable 'Any organization's members' setting when creating a Group or updating properties</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299630#M8789</link>
      <description>&lt;P&gt;The parameter for membership_access defaults to None, which according to the documentation (rest) should set&amp;nbsp; to&amp;nbsp;&lt;EM&gt;Any organization's members&lt;/EM&gt;&amp;nbsp; in the Group settings. This is not the case, the default is org and using the update function and setting to None is not honoured. When I set it manually in the Group settings to &lt;EM&gt;Any organization's members&lt;/EM&gt;, the membershipAccess property disappears from the JSON. The arcgis module version is 2.1.0.2&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 12:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299630#M8789</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2023-06-15T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enable 'Any organization's members' setting when creating a Group or updating properties</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299755#M8791</link>
      <description>&lt;P&gt;It looks like the membership_access parameter is new as of arcgis module version 2.1 as it is not in 2.0. Here is the description from using the python help function. The default, however, is not None, it is org and I cannot seem to set it to None to allow any organization access unless I perform manually.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clubdebambos_0-1686841857922.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73354i2DB575A473317533/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clubdebambos_0-1686841857922.png" alt="Clubdebambos_0-1686841857922.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 15:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299755#M8791</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2023-06-15T15:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot enable 'Any organization's members' setting when creating a Group or updating properties</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299783#M8793</link>
      <description>&lt;P&gt;Submitted as a bug&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api/issues/1590" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues/1590&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Workaround by KHimba on &lt;A href="https://gis.stackexchange.com/questions/461728/cannot-enable-any-organizations-members-setting-when-creating-a-group-or-upda?noredirect=1#comment754225_461728" target="_blank" rel="noopener"&gt;GIS StackExchange&lt;/A&gt; and code posted below.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

agol = GIS("home")

g = agol.groups.create(
    title = "Test_Group1112",
    tags = ["Test", "Group"]
)

gId = g.id
params = {"membershipAccess": "", "clearEmptyFields":"true"}
update = agol._con.post("{}/sharing/rest/community/groups/{}/update".format(agol.url, gId), params)
print(update)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Jun 2023 16:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/m-p/1299783#M8793</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2023-06-15T16:01:43Z</dc:date>
    </item>
  </channel>
</rss>

