- URL:
- https://[root]/community/groups/[groupID]/addUsers
- Methods:
POST
Example usage
The following is a sample ArcGIS Online POST request for the add
operation:
POST /sharing/rest/community/groups/826ab72ed44c48beb8735c2634e0bfad/addUsers HTTP/1.1
Host: org.arcgis.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
users=drohner,swilson&f=pjson
The following is a sample ArcGIS Enterprise POST request for the add
operation:
POST /webadaptor/sharing/rest/community/groups/826ab72ed44c48beb8735c2634e0bfad/addUsers HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
users=drohner,swilson&f=pjson
Description
The add
operation allows group owners, group managers, and organization administrators to add users directly to a group without requiring the users to accept an invitation. A maximum of 25 users can be added in one request.
The operation may fail to add users to a group if the users do not have the required privileges to join the group, or if they have reached the maximum number of groups they can participate in (a maximum of 512 groups). Users from outside the organization may also fail to be added to a group if the group has met its limit on adding external members.
Request parameters
Parameter | Details |
---|---|
| A comma-separated list of usernames to be added to the group as group members. Example:
|
| A comma-separated list of usernames to be added to the group as group managers. Example:
|
| The response format. The default format is Values: |
Response properties
Property | Details |
---|---|
| A JSON array of usernames that were not added. |
JSON Response syntax
{
"notAdded": [
"<username1>",
"<username2>"
]
}
JSON Response example
{
"notAdded": [
"drohner",
"swilson"
]
}