How to remove edit feature for all users for a particular page in Confluence using scripting

SWAPNIL SRIVASTAV July 14, 2022

Hello All,

We want to apply edit restrictions on a confluence page for all users.

Kindly guide us how to do so via scripting. Because this page is deleted and created every day with fresh data via script.

 

Is there any method using javascript? for e.g I found this article to hide labels for a particular space:

https://confluence.atlassian.com/confkb/how-to-hide-labels-in-confluence-page-using-javascript-in-specific-spaces-836603034.html

Any help would be appreciated.

2 answers

0 votes
Jessie Wang_ScriptRunner_The Adaptavist Group
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 19, 2022

Hi @SWAPNIL SRIVASTAV on ScriptRunner for Confluence there is a built-in script that allows you to bulk set edit restrictions on parent and child pages https://docs.adaptavist.com/sr4c/latest/features/built-in-scripts/confluence-administration-built-in-scripts/add-remove-restrictions-to-parent-and-child-pages

However you mention that the page is deleted and recreated everyday. We have a 'Listener' available which automatically applies parent permissions to child pages that are created in a Space. Perhaps that might help.

Screenshot 2022-10-19 at 12.48.52.png

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2022

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events