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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Confluence - Scriptrunner: How could I automatically remove restrictions of multiple pages?



I want to determine who can view and / or edit individual pages with a specific string included in their content.

The script I would like to use is to remove all users except the page creator so that only the page creator can view and edit this page.

for example:

I want to restrict all pages that contain the "Hello" string in the content.
I'm running a script that relies on a specific string.

Once I run the script all viewing permissions from these pages will be removed except the page creator.


Continuing with the question,

Let’s say the page creators edit the page and remove the “Hello” string, after I run my script again, these pages will no longer be restricted. (Like a rollback).

Is there a way to do that?

Any reply will be welcomed!


1 answer

0 votes
Laurens Coppens
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 04, 2021

Hi Guy,


I'm not the best scripter, but as you already have a script that uses that string, i would suggest to extend that with remove content permissions:

Hope this helps,


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events