Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group Properties Should Match Create Parameters #1898

Open
BrettFrahm opened this issue Aug 13, 2024 · 2 comments
Open

Group Properties Should Match Create Parameters #1898

BrettFrahm opened this issue Aug 13, 2024 · 2 comments

Comments

@BrettFrahm
Copy link

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.

  • max_file_size
  • display_settings
  • is_open_data
  • leaving_disallowed
  • membership_access
@achapkowski
Copy link
Contributor

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

@BrettFrahm
Copy link
Author

Hello @achapkowski ,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants