Remove Users From Group

Description

The operation to Remove Users From Group (POST only) is available only to the group administrators, including the owner, and to the administrator of the organization if the user is a member. Both users and admins can be removed using this operation. Group owners cannot be removed from the group.

Request Parameters

Parameter

Details

[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: users=regularusername1,adminusername1,adminusername2,regularusername2

Response Properties

Property

Details

notRemoved

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

Example Usage

URL for Remove Users

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

JSON Response Syntax

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

JSON Response Example

{
  "notRemoved": [
    "drohner"
  ]
}

7/5/2017