Grettings ! I need to get a list of users who have restrictions on accessing the pages in confluence by querying the database. what table does this data contain?
The table you are looking for is called CONTENT_PERM.
Column name | Description
----------------------------------------------------
ID | table primary key
CP_TYPE | type of page restriction (View or Edit)
USERNAME | foreign key to the user_mapping table either this or GROUPNAME will be set
GROUPNAME | either this or USERNAME will be set
CPS_ID | foreign key to the CONTENT table
CREATOR | foreign key to the user_mapping table
CREATIONDATE | creation date
LASTMODIFIER | foreign key to the user_mapping table
LASTMODDATE | last modification date
Thank you very much ! One more question, please.
How i can join it to normal view.
Like
GROUPNAME | USER
Is ID`s in table = ID`s in table cwd_user ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the above answer I put in the description section the tables that the foreign keys map to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are looking for a particular users' restricted pages -
select * from CONTENT where CONTENTID in ( select CONTENT_ID from CONTENT_PERM_SET where ID in (select CPS_ID from CONTENT_PERM where USERNAME in (select user_key from user_mapping where lower_username like "lower.username")));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Theyoba,
Here is the link the the Confluence DB.
I don't see permissions based on pages, it is more space level.
We have to get space admins used to grant access to pages by group and not by individuals. I am fighting for it right now in my company
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm.. why using DB? You can list all restrictions by going to Space Admin > Restricted Pages on each space that you are interested in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am looking for a way to list ALL restricted pages in ALL spaces in order to understand what we have to possibly add in an admin group to fix any broken macros post-migration in those restricted pages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User will need to use a join with another table so that he can get the username. Username in CONTENT_PERM table displays as numbers
It shows the group name but not individuals.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.