I am currently working on a macro that displays all groups with "VIEWSPACE" and "SETSPACEPERMISSIONS" permissions. I have already implemented it, however it seems to be way to heavy for our server.
Here some parts of the code:
#foreach ($permission in $space.getPermissions())
#if ($permission.isGroupPermission() && $permission.getType() == "SETSPACEPERMISSIONS")
#set ( $groupString = $permission.getGroup() )
#set ( $groupObject = $userAccessor.getGroup($groupString) )
#set ( $memberList = $userAccessor.getMemberNamesAsList($groupObject) )
As you can see, I get the groups by retrieving all permissions of the space at first.
This is exactly what I need. Also the $action object holds a spacePermissionManager unfortunately I am not able to use it, as no getter is available. Is there a specific reason for that? Is there any other way to obtain the spacePermissionManager?
Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events