Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence CLI to remove permissions ALL spaces (personal & global)

Ashley Rhodes
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!
August 2, 2018

HI,

 

Hoping someone can help me, im using Confluence CLI add on to remove and add some permissions on the all spaces (inc personal) - I'm trying to make Confluence read only without having to use the expired license trick.

 These are my current steps.

 

#Make CSV list of all spaces.
confluence --action --personal getSpacePermissionList --personal --file 1list.csv --columns space,id
#Remove all permissions. Using the CSV
confluence --action runFromCsv --file 1list.csv --common "--action removePermissions --permissions @AlL"

This works for all global spaces, but its unable to remove from Personal spaces.

1 answer

0 votes
Tinker Fadoua
Community Champion
August 2, 2018

 Hi Ashley

There is a SQL query that can do that, in fact we used it recently:

https://confluence.atlassian.com/confkb/how-to-remove-all-restrictions-from-pages-within-a-space-701268549.html

You have to do it in Dev first then try it in Prod. Keep in mind you will have to restart Confluence.

Best,

Tinker Fadoua
Community Champion
August 2, 2018

Here is another link

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events