18 Jun
2012
18 Jun
'12
12:07 p.m.
Hello, I'm trying to retrieve all users of a given group, but maybe there is a problem with my code. First, this is my code : {{velocity}} #set($users = $xwiki.rightsmanager.usersApi.allUsersNames) #foreach($user in $users) $user #if($user.isUserInGroup('Gestionnaires')) $user #end #end {{/velocity}} I have 6 users in my group "Gestionnaires" but none of these users is displayed with this code. Do you have an idea of why it doesn't work ? Do I forget something ? Thank you very much in advance for everyone who will answer me ^^ Thanks, Stéphanie -- View this message in context: http://xwiki.475771.n2.nabble.com/Retrieve-all-users-of-a-given-group-tp7579... Sent from the XWiki- Users mailing list archive at Nabble.com.