Availability
This feature is available starting with v1.1.3 of the Power Scripts™ for Confluence.
Syntax
removeAllUserRestrictionsFromContent(pageId, userNameOrKey)
Description
Removes all user restrictions on the page for the userParameters
Parameter name | Type | Required | Description |
---|---|---|---|
pageId | number | Yes | The ID of the page on which will be deleted user restrictions. |
| string | Yes | User name or key of a user which has restrictions on the page. |
Return type
boolean (true/false)
Returns true if the content permission have been removed from the page for the user or this page has no restrictions for the user.
Returns false if an error occurred during execution.
Example
Removes all user restrictions on the page with the 11508 ID for the user "jdoe"
removeAllUserRestrictionsFromContent(11508, "jdoe");
See also