Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Change text in the restriction pop up

Dominic Lagger Community Leader Apr 28, 2021

Hi all

Is there any possibility (JS, ScriptRunner, other ideas) to change the text in the restriction pop up? 


Use Case: A lot of user doesn't understand, that the edit restriction isn't the edit permission. So they ask, why the user do not have edit permission although they "give them permission".

Thanks for any idea!

Regards, Dominic

2 answers

1 vote

Hi Dominic.

The following JavaScript might help to get you started with the goal, which you can append to the Custom HTML admin section.

<script type="text/javascript">
$( document ).ajaxSuccess(function( event, request, settings ) {
if (settings.url.indexOf("getcontentpermissions.action") >= 0 && (event.currentTarget.URL.indexOf("viewpage.action") >= 0 || event.currentTarget.URL.indexOf("/display/") >= 0)){
console.log("ajaxSuccess",settings.url, event.currentTarget.URL);
if ($('').html().indexOf("Everyone can view and edit this page") >= 0){
$('').html('Your custom text');


This script does:

  • Listen to XHR successful load events, which in this case is the user opening the Restrictions popup.
    • Subsequent code is only executed if the XHR event came from the view page.
  • If the current text is "Everyone can view and edit this page", then it changes to "Your custom text".

I just couldn't find a way to bind it to changes on the selector.
So if the user changes from No restrictions to something else and then gets back to No restrictions, then the original text would be used.

Kind regards,
Thiago Masutti

Dominic Lagger Community Leader Apr 28, 2021

Hey @Thiago Masutti 

Thanks a lot for your help!

It's pitty, that you couldn't find a way to bind the selector changes. Because I want to show a message only in the "Only some people can view or edit"-Case.

Because then, the user thinks "Oh I gave him edit permissions", and then a support ticket could be avoid when the text would be "Only some people can view or edit. Make sure to give edit permission on the space" (Something like that)

Regards, Dominic

I see @Dominic Lagger 

If editing a bundled plugin is an option to you, which would also require you to make modifications on every upgrade, then you can change the original plugin and the related file in the translation plugins for target languages.

  •  confluence-page-restrictions-dialog-<version>.jar
  • confluence-language-pack-<language>-<version>.jar
    • page-restrictions-dialog<language>.properties

The jar files are located in <confluence-install>/confluence/WEB-INF/atlassian-bundled-plugins

These may be the target options:

option.edit.description=Everyone can view, only some can edit.
option.none.description=Everyone can view and edit this page.
option.viewedit.description=Only some people can view or edit.

Changing these files requires a restart and clearing the plugins cache is recommended.
If using data center, this should be changed on all nodes of the cluster.

Kind regards,
Thiago Masutti

Dear @Dominic Lagger ,

removed my answer. The one of @Thiago Masutti is the best! Please accept that one.

So long


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. (Read m...

610 views 4 26
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you