Skip To Content
ArcGIS Developer
Dashboard

/addUsers: Add Users to Group

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

Example Usage

URL for Add Users

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

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 25 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.

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": []
}}