How to extract a list of users with (view) access to a confluence space

Gerard Dens November 9, 2015

I would like to have a list of users with access to a space.

Nicer would be an 'add-on'/macro in the space itself so that the information is always up to date.

1 answer

0 votes
Eduardo Nunes
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2015

Hi Gerard,

 

You can list which spaces an specific user can access by running the following SQL query against the Confluence database:

 information Replace <user_name> with the actual username of the user, in lowercase.

SELECT s.SPACEKEY
FROM SPACEPERMISSIONS sp 
JOIN SPACES s ON s.SPACEID = sp.SPACEID
JOIN user_mapping um ON um.user_key = sp.PERMUSERNAME
WHERE um.lower_username = '&lt;user_name&gt;'
GROUP BY s.SPACEKEY
ORDER BY s.SPACEKEY;

 

You can see full information in the link below:

https://confluence.atlassian.com/display/CONFKB/How+to+list+which+spaces+a+user+can+access

 

Cheers,

Enunes

Gerard Dens November 12, 2015

Thanks. This gives me for each known user which space the user can access. I need the opposite

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events