Availability
This feature is available starting with v1.1.3 of the Power Scripts™ for Confluence.
Syntax
removeAllGroupRestrictionsFromContent(pageId, groupName)
Description
Removes all group restrictions on the page for the selected groupParameters
Parameter name | Type | Required | Description |
---|---|---|---|
pageId | number | Yes | The ID of the page on which will be deleted group restrictions. |
| string | Yes | The name of a group 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 group or this page has no restrictions for the group.
Example
Example 1
removeAllGroupRestrictionsFromContent(11508, "confluence-users");
Removes all group restrictions on the page with the 11508 ID for the group "confluence-users"
See also