Confluence restrictions
Asked by James Woodham:

I am a space administrator in Confluence but cannot edit restrictions on a page. The padlock icon just brings up a window which is gives info on who can view and who can edit but no opportunity to edit. Also there is no Space Admin option in the Browse \> menu. I was able to do all these things previousy.


Answers:
author: Septa Cahyadiputra
body: Hi James,

Members of confluence-administrators group should be able to modify Space permission. So if you are a member of the group, you can grant yourself space admin privilege, or you can ask a member of the group to do it for you.

Hope it help.

Cheers,  
Septa Cahyadiputra


author: Septa Cahyadiputra
body: If you have database access you can make yourself to become a member of confluence-administrators by following this [guide](https://confluence.atlassian.com/display/DOC/Restoring+Passwords+To+Recover+Admin+User+Rights#RestoringPasswordsToRecoverAdminUserRights-nolocalIfNoLocalAdministratorExists).

Take note of the step three to INSERT your user to cwd_membership table. You can find your user id using this SQL query

```
SELECT * FROM cwd_user WHERE user_name = '&lt;your username&gt;';
```

You also need to find confluence-administrators group id using this SQL query

```
SELECT * FROM cwd_group WHERE group_name = 'confluence-administrators';
```

Once you got both ID, you should be able to implement the query provided from the page linked above.

Hope it help.

Cheers,  
Septa Cahyadiputra

comments: author: James Woodham
body: Thanks Septa but the link to that guide didn't work, please can you check and send again?

James


author: Septa Cahyadiputra
body: It should work now. Sorry bout that.


author: Steve Letch
body: [@Septa Cahyadiputra](/t5/user/viewprofilepage/user-id/1720355)

Afternoon, database question, we've a need to ad an AD group with view rights to all restricted pages in our instance. We've been looking at this for months, Groovy script wont work due to the bug in addcontentpermission, the built in scripts in Scriptrunner have severe limitations and API looks like a nightmare.

Would you know of a DB command to try on our test instance to see if we could get this to work? I know it's not recommended but if we had a working query we could shut the instance down on a weekend to carry it out.


author: James Woodham
body: I think I am no longer a space administrator now becuase the links referred to in this thread don't appear for me. If there is only one space adminstrator and they have left, how can we create a new space administrator?

Thanks for your help


author: James Woodham
body: Thanks for your answers. I have a feeling that the space administator rights have been transferred to a colleague who has since left the organisation and so we can't edit these permissions. Is there a super user who can access and edit these page restrictions?

Thanks


author: Ale? La?ar
body: James,

If you are space administrator, go to Space Tools and there are pages with restrictions, where you can delete restriction.

Or try become System Admin and then you can watch restricted pages, set restrictions, but still you cant edit it (but you can add yourself to restrictions) :)


author: Septa Cahyadiputra
body: Hi James,

If you have space administrator privilege you should be able to access this [page](https://confluence.atlassian.com/display/AOD/Page+Restrictions#PageRestrictions-Viewingallrestrictedpagesinaspace) where you can manage all page restrictions in a space.

Hope it help.

Cheers,  
Septa Cahyadiputra


author: Elisa [Atlassian]
body: Hi James,

If you haven't done so, you need to [grant you permission to restrict a page](https://confluence.atlassian.com/display/AOD/Assigning+Space+Permissions) (even being the space administrator). :)

Please let me know if this helps you. :)