cogList of groups and subgroups that the current user or group is member of
TypeJAR
Category
Developed by

Anca Luca, Paul-Catalin Cojan

Active Installs10
Rating
1 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

List of groups and subgroups that the current user or group is member of

Simple usage example

{{velocity}}
## get reference to a user
#set($userRef = $xwiki.getDocument("xwiki:XWiki.Admin").getDocumentReference())

Groups of user $userRef:
## list all groups (return values are strings, actually)
#foreach($groupName in $services.userGroup.getGroups($userRef, true, true, true))
* $groupName
#end
{{/velocity}}

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.contrib.usergroup:api-usergroup 1.0):

Tags:
    

Get Connected