Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | addUserToGroup(user, group) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Adds a single user to a group if the user is not already in that group. |
Adds a single user to a group if the user is not already in that group.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
User | String | Yes | Username or userkey. | Group | String | Yes | Group name. | |
Return Type
Boolean
Returns "true" if operation succeeded.
Example
Code Block |
---|
|
addUserToGroup("user.3", "Senior Developers"); |
Note |
---|
The look-up is first made after the userkey, then after the username. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "user_admin_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|