Add Users to Group

Description

The operation to Add Users to 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 added using this operation. This is useful if you wish to add users directly within an organization without requiring them to accept an invitation. For example, a member of an organization can add only other organization members but not public users.

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 added to the group.

Example: users=regularusername1,adminusername1,adminusername2,regularusername2

Response Properties

Property

Details

notAdded

A JSON array of usernames that were not added.

Example Usage

URL for Remove Users

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

JSON Response Syntax

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

JSON Response Example

{
  "notAdded": [
    "drohner"
  ]
}

7/27/2017