How do I generate list of all spaces and users that have access to each space

Melanie van Blerk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2022


I need to generate a report on spaces and who has been granted access to them. Specifically users that are not on our domain.

I have attempted to run this query but it times out after a while. 

SELECT s.spacename as Space, u.user_name as Username
FROM spacepermissions sp
JOIN spaces s ON s.spaceid = sp.spaceid
JOIN cwd_group g ON sp.permgroupname = g.group_name
JOIN cwd_membership m ON = m.parent_id
JOIN cwd_user u ON = m.child_user_id
WHERE sp.permgroupname IN
SELECT g.group_name
FROM cwd_group g
ORDER BY s.spacekey;

I would appreciate any suggestions on how to get this information? 



1 answer

0 votes
Florian PEREZ
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 24, 2022


I tend to do this a more easy way but it depends on the configuration you set on permission. 

on my side we have specific group that access each space and we show the content on each group on dedicated page on each space using the user group macro. 

this way each space admin can have a quick view on member. 

Hope this help ! 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events