Hi all,
I'm trying to automatically list all groups attached to a particular space using a User Macro.
Been searching in the community and in classes descriptions to find information but i cannot find this class or function.
Can i
Can it be done? Can you please point me in the right direction?
Thanks in advance.
Regards,
Bernard
Hello @Bernard , not sure what you mean by a group being attached to a particular space.
In a space (spacetools) under access you can attach user groups for particular persissions.
I want to list the names of these these groups for a given spacekey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So you are wanting this for the entire Confluence instance, a list of permissions for each space?
Maybe a plugin such as this one would do what you want to: https://marketplace.atlassian.com/apps/1214087/space-admin-for-confluence?hosting=server&tab=overview
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
As i mentioned in my first post " a particular space" not systemwide.
I can query users in a particular group via a user macro.
Now just wat to list the "user" groups attatched to a space.
So i get this via a user macro:
(query groups in for a given space)
group name 1
- user
- user
group name 2
- user
- user
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, it won't be 100%, but you could generate a list of all pages in the space, then query who was the creator, and who last modified the page, then query what groups those user belong to, and resort. Of course you will have situations where a single user belongs to two groups.
Or you can run this orthogonally, and list all groups, then their users, displaying only those who have edit permission for example. Here is a snippet of code I found:
#if ($permissionHelper.canEdit($authenticatedUser, $action.page)) <b>You have Edit Permission for this Page</b> #end
But it would take some work to develop and test this macro, not sure the ROI is there when any space admin can just view the permissions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.