Hello,
Someone one my team must have set a page restriction or something applied restrictions to all pages (we use scroll versions). I need to get restrictions removed from all pages as we only use global permissions on the space. Is there a way to easily do this without having to edit every single page?
Thank you
Hey Neal,
One Idea is to remove the entries from the database:
Run below query to
Select SPACEID from SPACES WHERE SPACENAME = 'My Space Name';
The spaceid from my local test is '851969', once you get the id from above query, replace the number 851969 in below queries and run then sequentially:
delete from CONTENT_PERM WHERE CPS_ID IN (select ID from CONTENT_PERM_SET WHERE CONTENT_ID IN (select CONTENTID from CONTENT WHERE SPACEID = 851969 AND CONTENTTYPE = 'PAGE'));
delete from CONTENT_PERM_SET WHERE CONTENT_ID IN (select CONTENTID from CONTENT WHERE SPACEID = 851969 AND CONTENTTYPE = 'PAGE');
Start Confluence.
You can use the removePermissions action from Confluence Command Line Interface (CLI). You need to know the specific user or group that has the permission. To do this for all pages in a space do something like:
confluence --action runFromPageList --space myspacekey --common "--action removePermissions --id @pageId@ --group mygroup --permissions view,edit"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.