Code that lists all users that have access to a space?

I have searched through various forums and such and cannot find how to do this. I would like to add code to a page that basically then will list every user that has access to that space. Preferably, it could also give other attributes of the user, but if all I get is a listing of names, that would be sufficient.

2 answers

1 accepted

Bob, the space-access macro is the same one that Matthew tried to show me how to add. I followed the instructions, but to no avail...

No, it is not a user macro. Here is a better link: Page Access Macro


I presume that you want a list of users that anyone can see?

you could write a user macro with the reporting plugin:

BTW be careful with this.... if you have lots of users & have open spaces it can be a bit of a resource hog

Thanks Matthew. I followed the instructions on the link you gave me, but it did not work. But thanks, I know I am getting closer...

Yes, I do. But it still gives some kind of error.

I tried this as well and have a question. Does this macro returns all users over all spaces? I tried this out in different spaces and seems to me like the result is the same

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,079 views 56 8
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