Info |
---|
|
This feature is available starting with v1.1.3 of the Power Scripts™ for Confluence. Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | removeAllUserRestrictionsFromContent(pageId, userNameOrKey) | Package | | Alias | | Pkg Usage | |
|
Description
Excerpt |
---|
|
Removes all user restrictions on the page for the user |
Removes all user restrictions on the page for the user
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
pageId |
|
...
Number | Yes | The ID of the page on which user restrictions will be deleted |
|
...
...
String | Yes | User name or key of a |
|
...
user that has restrictions on the page. |
|
Return
...
Type
boolean 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.
Note |
---|
Before execution of a routine, you must verify that the user exists: user Exists .
|
Example
Removes all user restrictions on the page with the 11508 ID for the user "jdoe"
...
Example
Code Block |
---|
|
removeAllUserRestrictionsFromContent(11508, "jdoe"); |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = " |
---|
|
...
...
routines" and space = currentSpace ( ) | labels |
---|
|
...
...