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 | addUserToProjectRole(user, project, role) | Package | adm | Alias | addUserToProjectRole | Pkg Usage | addUserToProjectRole(user, project, role) |
|
Description
Excerpt |
---|
|
Adds a single user to a project role if the user is not already in that role. |
Adds a single user to a project role if the user is not already in that role.
...
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. | Project key | String | Yes | Key of the selected project. | Role name | String | Yes | Name of the role to add the user to. |
|
Return Type
boolean starting with 2.5.16 / 2.6.8.
...
Code Block |
---|
addUserToProjectRole("user.3", "TEST", "Developers"); |
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 |
---|
|