HOW TO
When deleting a member in ArcGIS Online, the error message “Unable to delete member: <username>. Member must not own groups” is returned, indicating the member owns a group, or groups with hidden members. With numerous groups in the ArcGIS Online organization, it can be time-consuming to identify them, therefore, this article presents the workflow to find groups with hidden members using ArcGIS REST API.
https://www.arcgis.com/sharing/generateToken?f=json&username=USERNAME&password=PASSWORD&referer=http://www.arcgis.com
https://www.arcgis.com/sharing/rest/community/users/USERNAME?f=pjson&token=TOKEN
The image below shows the JSON script of the group containing the hidden members.
Get help from ArcGIS experts
Download the Esri Support App