ArcGIS REST API

Add Users to Group

Description

The add users to group operation (POST only) allows group owner, group manager and org administrator to add org members directly to a group without requiring them to accept invitation. A maximum of 100 users can be added in one request.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

users

A comma-separated list of usernames to be added to the group as group members.

Example: regularusername1,regularusername2

admins

A comma-separated list of usernames to be added to the group as group managers.

Example: adminusername1,adminusername2

Response Properties

PropertyDetails
notAdded

A JSON array of usernames that were not added.

Example Usage

URL for Add Users

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

JSON Response Syntax

{
  "notAdded": [  
    "<username1>",
    "<username2>"
  ]
}

JSON Response Example

{
  "notAdded": [
    "drohner"
  ]
}

or 

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