projectsWithPermissionForUser
Syntax | projectsWithPermissionForUser(user, permissionKey) | Package |
|
Alias |
| Pkg Usage |
|
Description
Retrieves the project keys where the given user has the given permission.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
user | String | Yes | Username. |
permissionKey | String | Yes | Key of the permission. |
Return Type
String[]
The return value is a string array containing all the project keys where the given user has the given permission.
Example
return projectsWithPermissionForUser("admin", "ADMINISTER_PROJECTS"));Result: DEMO|ITSD|TST