Info |
---|
|
This routine is available starting with SIL Engine™ 3.1.2/SIL Engine™ 3.0.14. |
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 | projectsWithPermissionForUser(user, permissionKey) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Retrieves the project keys where the given user has the given permission. |
Retrieves the project keys where the given user has the given permission.
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. | permissionKey | String | Yes | Key of the permission. | |
Return
...
Type
stringString[]
The return value is a string array containing all the project keys keys where the given user has the given permission.
Example
Code Block |
---|
return projectsWithPermissionForUser("admin", "ADMINISTER_PROJECTS")); |
Result: DEMO|ITSD|TST
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 15025 |
---|
showSpace | false |
---|
cql | label = "jira_project_routine" and space = currentSpace ( ) |
---|
labels | jiraarray_project_routineroutines |
---|
|