userSpacePermissions
Syntax | userSpacePermissions(spaceKey, userNameOrKey) | Package | |
Alias | Pkg Usage |
Description
Returns the permissions of the provided user in the space.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
spaceKey | String | Yes | The key of the space to get permissions for. |
userNameOrKey | String | Yes | User name or key of a user to get permissions for. |
Return Type
String []
Example
Retrieves space permissions of user "jdoe" for space with key "PS-DOCS".
string[] permissions = userSpacePermissions("PS-DOCS", "jdoe");