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 Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,114 views 17 14
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