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

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

This widget could not be displayed.

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

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
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

341 views 2 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you