Esri / arcgis-python-api

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

Group cannot be created with `membership_access=None` #1581

Closed philnagel closed 1 year ago

philnagel commented 1 year ago

Describe the bug In order to create a group that allows members from any org, membershipAccess needs to be passed as None \ null When doing this with the ArcGIS API for Python, the argument is not included in the POST payload. I believe it is being filtered out in the function _to_utf8():

image

To Reproduce Steps to reproduce the behavior:

group = gis.groups.create(title='A test group that should allow members from any org', tags=['test'], membership_access=None)

error: N/A Screenshots Fiddler payload as captured from ArcGIS API: image

Fiddler Payload as captured from AGOL UI: image

Expected behavior Include the parameter even with the empty value in order to create the group with the proper settings.

Platform (please complete the following information):

Additional context N/A

nanaeaubry commented 1 year ago

Thanks for reporting this we will take a look!

nanaeaubry commented 1 year ago

We have fixed the issue for the next release