Esri / arcgis-python-api

Documentation and samples for ArcGIS API for Python
https://developers.arcgis.com/python/
Apache License 2.0
1.89k stars 1.1k forks source link

Group Properties Should Match Create Parameters #1898

Open BrettFrahm opened 2 months ago

BrettFrahm commented 2 months ago

Is your feature request related to a problem? Please describe. Groups are becoming "corrupted" according to ESRI Support and stop syncing over features correctly with collaborations. I need to recreate groups with the same settings and shared items in the same portal. I am not transferring sites/portals so it is a simpler use case than what is needed with cloning a group or using the GroupMigrationManager. With that, I am using the GroupManager.create() to make a new group with the same thumbnail, settings, etc. as an existing group.

The problem is that there doesn't seem to be group properties for every parameter that is used to create a group.

<old_group = arcgis.gis.Group(old_gis, old_id)
old_group_members = old_group.get_members()
        old_thumbnail = old_group.download_thumbnail()>
new_group = new_gis.groups.create(title=new_title, tags=old_group['tags'],
                                              description=old_group['description'],snippet=old_group['snippet'],
                                              access= old_group['access'], thumbnail=old_thumbnail,
                                              is_invitation_only=old_group['isInvitationOnly'], sort_field=old_group['sortField'],
                                              sort_order=old_group['sortOrder'], is_view_only=old_group['isViewOnly'],
                                              auto_join=old_group['autoJoin'], provider_group_name=old_group['providerGroupName'],
                                              provider=old_group['provider'])

Describe the solution you'd like Add properties to Group object that match the following GroupManager.create() parameters.

achapkowski commented 2 months ago

What version of the python api are you using (example:2.3.1)?
What version of enterprise?

BrettFrahm commented 2 months ago

Hello @achapkowski ,

We are on 2,2,0,1 at the moment. Our Enterprise is at 11.2