Skip to end of banner
Go to start of banner

removeAllUserRestrictionsFromContent

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 4 Next »

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 user

Parameters

Parameter name

Type

Required

Description

pageIdnumberYesThe ID of the page on which user restrictions will be deleted.

userNameOrKey

stringYesUser name or key of a user that has restrictions on the page.

Return type

boolean (true/false)

Returns true if the content permission has 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.

Before execution of a routine, you must verify that the user exists. You can use the userExists routine for that.

Example

Removes all user restrictions on the page with the "11508" ID for the user "jdoe".

removeAllUserRestrictionsFromContent(11508, "jdoe");


See also

  • No labels