/removeUsers: Remove Users From Group

URL:
https://[root]/community/groups/[groupID]/removeUsers
Methods:
POST

Example Usage

URL for Remove Users

Use dark colors for code blocksCopy
1
2
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

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
  "notRemoved": [  //only admins and users not successfully removed are returned.
    "<username1>",
    "<username2>"
  ]
}

JSON Response Example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "notRemoved": [
    "drohner",
    "swilson"
  ]
}

or

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

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.