Syntax
userContentPermissions(pageId, userNameOrKey)
Description
Returns the permissions of the provided user for the specified content.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
| string | Yes | User name or key of a user to get permissions for. |
pageId | number | Yes | The ID of the page to get permissions for. |
Return type
string[]
Returns a string array containing permission types for the specified content and user. Here is the list of valid content permission types:
Permission type | Description |
---|---|
View | Permission to view content. |
Edit | Permission to edit content. |
Example
Example 1
string[] permissions = userContentPermissions(11508, "jdoe");
Retrieves content permissions of user "jdoe" for page with ID 11508.
See also