Skip to end of banner
Go to start of banner

userContentPermissions

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Syntax

userContentPermissions(pageId, userNameOrKey)

Description

Returns the permissions of the provided user for the specified content.

Parameters

Parameter name

Type

Required

Description

userNameOrKey

stringYesUser name or key of a user to get permissions for.
pageIdnumberYesThe 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 typeDescription
ViewPermission to view content.
EditPermission to edit content.

Example

Example 1

string[] permissions = userContentPermissions(11508, "jdoe");

Retrieves content permissions of user "jdoe" for page with ID 11508.

See also

  • No labels