L07_OrgAdministration_CreateGroup

In [4]:
from arcgis.gis import GIS
# connect to GIS with credentials
gis = GIS("https://www.arcgis.com", "<enter username here>", "<password>")
In [5]:
nyc_group = gis.groups.create(title='New York City Emergency Management',
                                    tags = 'nyc, Emergency Management',
                                    description = 'Group to work with New York City Emergency Management',
                                    snippet = 'NYC open data',
                                    access = 'org',
                                    is_invitation_only = 'False',
                                    thumbnail = r'C:\ArcGISPythonAPI_Code\NYC_icon.png')
nyc_group
Out[5]:
New York City Emergency Management

Summary: NYC open data
Description: Group to work with New York City Emergency Management
Owner: BenRamsethEsri5
Created: February 13, 2017
In [7]:
nyc_group = gis.groups.search('New York City Emergency Management')
nyc_group
Out[7]:
[<Group title:"New York City Emergency Management" owner:BenRamsethEsri5>]
In [8]:
nyc_group[0]
Out[8]:
New York City Emergency Management

Summary: NYC open data
Description: Group to work with New York City Emergency Management
Owner: BenRamsethEsri5
Created: February 13, 2017
In [ ]: