Page permissions - not restrictions.
Asked by cedrhoch cedrhoch:

Hi,

I would like to use the reverse functionality of the restricted page.

**Let me explain:**

As an administrator, I have to manage 15 groups which I granted the right to upload documents for space.

I need to distribute these groups' permissions across a complex pagetree.

In this case, the Pages Restriction feature is not useful because of the number of pages and groups.

A topic talks about the Remote Api plugin... But I do not know this plugin.

I use Confluence 3.4.8.

Thanks in advance.

Regards,

Cedric Hoch


Answers:
author: Bob Swift (personal)
body: Similar to Leo answer, you can use [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) to **addPermissions** for either spaces or pages. If the pages are in a hierarchy and you are talking about edit permissions, you can use the **--descendents** flag to make it easier (view permission is automatically works on a hierarchy.

However, your question is somewhat confusing. Uploading attachments is a space permission. Page permissions deal with view and edit permissions to a page.


author: cedrhoch cedrhoch
body: Thanks for your answers,

I know that Uploading attachment is a space permission, but I have many groups which have the same global and space permission. I would like to enable the space permission of each group **just** **for some specific pages...**

I'm going to do it with the command line Interface. Thank you for the link Bob.

comments: author: cedrhoch cedrhoch
body: This feature is very practical !! I've done a test with this command line:

**confluence --action addPermissions --space SpaceKey --title "My Page" --permissions edit --group my_Group --descendents**

*7 descendent pages had Edit permission added.
\[Edit\] permissions where added to page: 'My Page' in space: 'SpaceKey' for: 'my_Group'.*

*------------------------------------------------------------------------------------------------------------------*

However, some descendents (2) have not got the edit permission. I don't understand why !!!


author: Bob Swift (personal)
body: Run the command with the **-v** option. If that doesn't help, open an issue here - <https://studio.plugins.atlassian.com/browse/JCLI>.


author: cedrhoch cedrhoch
body: I had this issue with a local installation. I've installed the Confluence CLI pack on my production site. And the --descendents parameter works.

Thanks for your help and Congratulations for your work !


author: Leo B
body: Using the remote API of Confluence you will be able to create a script or a program to add users and set the permissions of each one.

You can enable this feature on the "General Configuration" of Confluence.

Hope this help.

Cheers.


author: Jeremy Largman
body: Cedric, you can just paste the link plain, if you want. It will render as a link. To paste a link with an alias, type something first, highlight it, then click the link icon.


author: cedrhoch cedrhoch
body: I found it in the old forum with "{#257292179}add Permission to page using Remote API"   
I'm sorry, I can't add link...


author: Andrei [errno]
body: what topic?


author: Richard Yale
body: Hi Cedric. We are looking at doing the same exact things and I've been looking at the actual permissions code in confluence itself. I think Atlassian has stood by their "restrictive" not "permissive" policy.