Retrieve users from a specific group
Last modified by Vincent Massol on 2025/02/12 12:25
![]() | Retrieve a list of users of a specific group |
Type | Snippet |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
{{groovy}}
xwiki.rightsmanager.usersApi.allUsersNames.each() {
if(xwiki.getUser(it).isUserInGroup("xwiki:XWiki.XWikiAllGroup")) {
println("* ${it}")
}
}
{{/groovy}}