Info |
---|
|
This routine is available starting with SIL Engine™ 2.5.16 for Jira 5.x / 2.6.8 for Jira 6. |
Syntax
...
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 | addUserToGroup | |
...
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
booleanBoolean
Returns "true" if operation succeeded.
Example
Code Block |
---|
admAddUserToGroupaddUserToGroup("user.3", "Senior Developers");
|
Notes
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 | 15025 |
---|
showSpace | false |
---|
cql | label in ( = "jirauser_groupadmin_routine" , "jira_user_routine" and space = currentSpace ( ) |
---|
labels | jira_group_routine jira_user_routinearray_routines |
---|
|