I'd like to create transparency around which users have access to a page

Jake Brandspigel May 2, 2023

I'm an admin and control access to a few spaces.  We restrict areas within spaces to a smaller group of users.  I use groups to control access at the space and page level.

What I would like to accomplish is to display on the restricted page exactly who has access (including a breakout of all group members, not just the group name) to create transparency and build confidence in the selected user group that they are posting in the appropriately restricted area.

Looking at restrictions takes time, and I don't know if there is any easy way for non-admin users to see who is in a group.

Trying to create some transparency.  A widget like the "children pages display" would be ideal, as this doesn't require code and is super easy to use.

Thanks for advice.

1 answer

0 votes
Ken McClean
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.
May 2, 2023



Here's a basic Confluence user macro I put together.  It lists out the users with individual permissions, and then the groups with permission and the users in the groups:

## @noparams
#set($permissions = $content.permissions)

#set($userNamesArray = [])
#set($groupNamesArray = [])

#foreach ($permission in $permissions)
#if($permission.userSubject && $permission.userSubject.name && !$userNamesArray.contains($permission.userSubject.name))
#set($unused = $userNamesArray.add($permission.userSubject.name))
#set($unused = $groupNamesArray.add($permission.groupName))

<h3>Users With Page Access</h3><br>
#foreach ($userName in $userNamesArray)

#foreach ($groupName in $groupNamesArray)
##Start group-loop
<h3>Groups With Page Access:<br>
<b> $groupName</b></h3><br>

#set($group = $userAccessor.getGroup($groupName))
#set($members = $userAccessor.getMemberNames($group))

Group Members:<br>
#foreach($member in $members)
$member <br>


##End group-loop




The output on the page looks like this:

Users With Page Access



Groups With Page Access:

Group Members:



Jake Brandspigel May 4, 2023

Hi Ken,

Appreciate your answer.  I’m a dummy and don’t mess around with macros, but I guess I could try it.  

I was really hoping there was a widget (like the child pages widget) available that I just hadn’t found that would make this super easy.

Maybe atlassian will turn your macro into a widget for us dummies one day!

Thanks for your help.


Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events