Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Making edit restrictions inherited

Ng Ken Jo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2018

Hi, i'm trying to find out how I can can lock an entire sub-tree from being edited, I refer to this page: https://confluence.atlassian.com/doc/page-restrictions-139414.html

Which says "View restrictions are inherited, which means a restriction applied to one page will cascade down to any child pages.  Edit restrictions are not inherited, which means pages need to be restricted individually. "

Is there a reason why Edit restrictions do not cascade with no option for them to do so? And is there any workaround to make edit restrictions inherited as well? 

4 answers

1 accepted

3 votes
Answer accepted
Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2018

Hi!

It's an interesting and quite old question. Discussion concerning this functionality dates back to 2006. You might be interested to know what other people think, please, take a look:

CONFSERVER-5095

The're a lot of pro- and counter- arguments.

Hope this helps.

Ng Ken Jo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2018

Wow seems I opened a big can of worms, thanks for the info i'll have a look.

2 votes
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 30, 2018

Power Scripts for Confluence (free app) was just released recently and I set this script up in our environment. I've set the script to run as a listener (see below screenshot). Whenever a page is created, updated, or moved and is under a certain tree in the navigation an editors restriction will be added to the page for a specified group.

string parentPageSpaceKey = "{spacekey}";
string parentPageName = "{page name at top of tree}";
string editGroup = "{group name}";

integer parentPageId = getPage(parentPageSpaceKey, parentPageName);
string parentPageIdStr = formatNumber(parentPageId, "#");

string cql = "(space=\"" + parentPageSpaceKey + "\" AND title=\"" + parentPageName + "\") OR (ancestor=\"" + parentPageIdStr + "\")";
number[] allPages = selectPages(cql);

for(number aPage in allPages) {
    if(aPage == parent) {
        addGroupToContentPermission("Edit", id, editGroup);
        break;
    }
}

 Capture.PNG

Krasimir Boev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 9, 2019

Thank you so much Davin Studer.

Like Davin Studer likes this
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 9, 2019

You are welcome.

Like Krasimir Boev likes this
0 votes
Shannon Meehan _K15t_
Atlassian Partner
November 22, 2019

Hi @Ng Ken Jo , 

As Davin said, there are some apps out there that can help you accomplish this. One of those is our Scroll Documents app that allows you to define a page tree as a single unit – a document – and then manage those pages together. 

One of the management features is being able to set the restrictions on the page tree from a single UI. When you update the view or edit restrictions for the document, those updates reflect one all of the pages – edit restrictions as well. You can read more about it here.

Of course, this isn’t the only functionality of the app. You can also version page trees, set workflow statuses, send read requests, and export to PDF or Word with our Scroll Exporter apps, and more. 

If you have any questions, we'd be happy to help or show you a demo of the app. Just get in touch with us: hello@k15t.com.

Cheers, 

Shannon (K15t)

0 votes
Grigory Salnikov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2018

Oh, there's a bunch of workarounds and suggestions as well.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events