Hi
I'm trying to create a custom macro (I'm novice) where I select the user and want to see the list of group memberships where the user belongs.
User list macro does not achieve this because a group needs to be selected first.
I found an example in the community but i can't make it work.
## @param User:title=User|type=string|required=true|desc=Enter a user name. <ul> #foreach($group in $userAccessor.getGroupNamesForUserName($paramUser)) <li>$group</li> #end </ul>
Is there another way to select the user and have the groups listed as a macro ?
thanks
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.