Bulk change space permissions
Asked by Antonio Smith:

Hello,

We are welcoming x amount of employees from another company into our group. We will be sharing one instance of Confluence Server 6.13 but have a requirement to restrict x employees from being able to access (view) all existing spaces. X will have access to their own home page.

All our spaces have (everybody, confluence-users, jira-users) permission groups.

1) How do we bulk remove (everybody, confluence-users, jira-users) and add custom groups to all existing spaces to exclude x employees? We have hundreds of spaces including archived ones so hoping we will not have to manually change these in each space

2) What is the best way to set up global permissions that work for two different permission schemes?

3) How do we audit what permissions are assigned to every space in our instance with/without querying the database?


Answers:
author: Ivan Lima
body: [@Antonio Smith](/t5/user/viewprofilepage/user-id/1144013)

I believe that there are a few options that you can use to achieve the bulk piece. We managed to bulk add and remove groups/users from space using [Power Scripts for Confluence](https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?hosting=server&tab=overview). We just found it very easy to use and the engine is free.

* [Space routines](https://confluence.cprime.io/display/PSCONF/Space+routines)
* [addGroupToSpacePermission routine](https://confluence.cprime.io/display/PSCONF/addGroupToSpacePermission+routine)
* [removeGroupFromSpacePermission routine](https://confluence.cprime.io/display/PSCONF/removeGroupFromSpacePermission+routine)

There is also the bulk apply permissions for DC (latest versions)

* [Bulk apply permissions](https://confluence.atlassian.com/doc/inspect-permissions-992678939.html#Inspectpermissions-Bulkapplypermissions)

For your number 2, as an option, since there is no such thing as the permissions schemes we've got in Jira, you can set spaces as "templates" and use an add-on to create new spaces based on those you set as templates.

For your number 3, it looks like you're looking for the inspect permissions feature, which is only available in Confluence DC. If it happens to be your case, you can take advantage of it as well.

* [Inspect permissions](https://confluence.atlassian.com/doc/inspect-permissions-992678939.html)

Cheers

IL.

comments: author: Antonio Smith
body: Apologies for the delay, couldn't access my account. Thanks a lot Ivan, we are working through space routines today.


author: Stella Schneider -Smateso-
body: Hi there!

If anyone is still searching for a solution on how to manage multiple space and page permissions without scripting in Confluence here it is!

We just released our new app "[Permission Management for Confluence](https://marketplace.atlassian.com/1229872)".

So feel free to give it a try and let us now, if you like it or what you need.

Kind regards

Stella

comments: author: Dan.Tombs
body: [@Stella Schneider -Smateso-](/t5/user/viewprofilepage/user-id/4952710)

Hey Stella. Are you aiming to release a cloud version of your app?


author: Stella Schneider -Smateso-
body: Hi Dan,

thanks for your interest in our app "[Permission Management for Confluence](https://marketplace.atlassian.com/1229872)".

However, we are currently not planning to release a cloud version in the near future. The possibilities for Atlassian Cloud Apps, especially regarding user management, are still quite limited. If this changes, I will let you know asap. :)

Since you cannot test our Data Center App and me being curious about your needs, feel free to send me an [email](mailto:app-support@smateso.com) with your expectations for this cloud version and my team and I will have a look, if and how it might be possible :)

Best regards

Stella


Tags: confluence-server

server