Skip To Content

/removeUsers: Remove Users From Group

  • URL:https://[root]/community/groups/[groupID]/removeUsers(POST only)

Example Usage

URL for Remove Users

https://www.arcgis.com/sharing/rest/community/groups/2ecb37a8c8fb4051af9c086c25503bb0/removeUsers
users=drohner,swilson

Description

The remove users from group operation (POST only) allows group owner, group manager and org administrator to remove members from a group. Both users and group managers can be removed using this operation. Group owner cannot be removed from the group. A maximum of 25 users can be removed in one request.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

users

A comma-separated list of usernames (both admins and regular users) to be removed from the group.

Example: regularusername1,adminusername1,adminusername2,regularusername2

Response Properties

PropertyDetails
notRemoved

A JSON array of usernames that were not removed. This can happen when the username was never a member of the group.

JSON Response Syntax


            {
  "notRemoved": [  //only admins and users not successfully removed are returned.  
    "<username1>",
    "<username2>"
  ]
}

JSON Response Example


            {
  "notRemoved": [
    "drohner"
  ]
}

or 

{"error": {
 "code": 400,
 "messageCode": "ORG_3100",
 "message": "Exceeded maximum number of users allowed per call.",
 "details": []
}}