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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

903 views 23 12
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