I have 40-50 Spaces and for historical reasons, people do not have remove page rights on them.
How can I fix this, without doing too much manual work?
And, how can I change the permissions so the users will have the desired rights by deault?
You can make use of the Confluence Command Line interface: https://plugins.atlassian.com/plugins/org.swift.confluence.cli. It is a remote API client - use it in a loop to apply the permission for your groups/users.
The method you will need to use is addPermissions, with permission removepage. See this for the doc:
I'm afraid there is no way to change the default space permission settings for new spaces.
Adding to Azwandi's answer, if you have CLI 2.6.0, it is easy to do for all spaces using something like:
confluence --action runFromSpaceList --common "--action addPermissions --space @space@ --permissions REMOVEPAGE --userId xxxxx"
or for groups, use --group instead of --userid
You can also look at your permissions via getSpacePermissionList - the documentation will be available when 2.6.0 is released (snapshot only right now).
More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs