Syntax
addUserToGroup(userNameOrKey, groupName)
Description
Excerpt |
---|
Adds Adds a single user to a group if the user is not already in that group already. |
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
| string | Yes | User name or key of a user to add into a group. |
groupName | string | Yes | Name of a group to add user into. |
...
Returns true if a user was successfully added into a group. Otherwise returns false.
Example
Example 1
Code Block |
---|
addUserToGroup("jdoe", "confluence-users"); |
Adds user the "jdoe" user into group the "confluence-users" group.
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|