Invite to Group
- URL:https://<group-url>/invite(POST only)
Description
A group administrator can invite users to join their group using the Invite to Group operation. This creates a new user invitation, which the users accept or decline. The role of the user and the invitation expiration date can be set in the invitation. A notification is created for the user indicating that they were invited to join the group. Available only to authenticated users.
Request Parameters
|
Parameter |
Details |
|---|---|
| [Common Parameters] |
For a complete listing, see Common parameters. |
| users | A comma separated list of usernames to be invited to the group. If a user is already a member of the group or an invitation has already been sent, the call still returns a success. Example: users=regularusername1,regularusername2 |
| role | Allows administrators to set the user's role in the group. Roles are:
|
| expiration | Expiration date on the invitation can be set for one day, three days, one week, or two weeks, in minutes. Example: expiration=1440 |
Example Usage
URL for Invite Users to a Group
https://www.arcgis.com/sharing/rest/community/groups/2ecb37a8c8fb4051af9c086c25503bb0/invite
users=mjohnson, swilson, rfields
JSON Response Syntax
{
"success": true | false,
"groupId": "<group id>"
}
JSON Response Example
{
"success": true,
"groupId": "2ecb37a8c8fb4051af9c086c25503bb0"
}