<?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 How to create a ArcGIS online group with some specific settings using ArcGIS python api? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-arcgis-online-group-with-some/m-p/1337999#M9145</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Those line of code create a new group with some specific properties and settings. But its not work for display_settings properties and Group membership settings (Who can view this group?) I set as "only group member". Please let me know if any ArcGIS&amp;nbsp;python api reference sample code will help to be able to set the settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; arcgis.gis &lt;SPAN class=""&gt;import&lt;/SPAN&gt; GIS
gis = GIS(&lt;SPAN class=""&gt;"https://www.arcgis.com"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"user_name"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"password"&lt;/SPAN&gt;)
group_properties = {
&lt;SPAN class=""&gt;"title"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"My_Group"&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"tags"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"GIS"&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"description"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"Only for testing"&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"access"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"org"&lt;/SPAN&gt;,  &lt;SPAN class=""&gt;# Set the access level (org, public, private)&lt;/SPAN&gt;
&lt;SPAN class=""&gt;"display_settings"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"apps"&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"is_invitation_only"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'True'&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"leaving_disallowed"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'True'&lt;/SPAN&gt;
}
new_group = gis.groups.create(**group_properties)
new_group.protected = &lt;SPAN class=""&gt;True&lt;/SPAN&gt;
new_group.update()&lt;/PRE&gt;</description>
    <pubDate>Sat, 14 Oct 2023 11:23:23 GMT</pubDate>
    <dc:creator>SriyankarDandapat</dc:creator>
    <dc:date>2023-10-14T11:23:23Z</dc:date>
    <item>
      <title>How to create a ArcGIS online group with some specific settings using ArcGIS python api?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-arcgis-online-group-with-some/m-p/1337999#M9145</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Those line of code create a new group with some specific properties and settings. But its not work for display_settings properties and Group membership settings (Who can view this group?) I set as "only group member". Please let me know if any ArcGIS&amp;nbsp;python api reference sample code will help to be able to set the settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; arcgis.gis &lt;SPAN class=""&gt;import&lt;/SPAN&gt; GIS
gis = GIS(&lt;SPAN class=""&gt;"https://www.arcgis.com"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"user_name"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;"password"&lt;/SPAN&gt;)
group_properties = {
&lt;SPAN class=""&gt;"title"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"My_Group"&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"tags"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"GIS"&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"description"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"Only for testing"&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"access"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"org"&lt;/SPAN&gt;,  &lt;SPAN class=""&gt;# Set the access level (org, public, private)&lt;/SPAN&gt;
&lt;SPAN class=""&gt;"display_settings"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"apps"&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"is_invitation_only"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'True'&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"leaving_disallowed"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'True'&lt;/SPAN&gt;
}
new_group = gis.groups.create(**group_properties)
new_group.protected = &lt;SPAN class=""&gt;True&lt;/SPAN&gt;
new_group.update()&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Oct 2023 11:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-arcgis-online-group-with-some/m-p/1337999#M9145</guid>
      <dc:creator>SriyankarDandapat</dc:creator>
      <dc:date>2023-10-14T11:23:23Z</dc:date>
    </item>
  </channel>
</rss>

