Extended Group API

Last modified by Admin on 2016/10/25 00:13

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

Anca Luca, Paul-Catalin Cojan

Active Installs10
Rating
Rate!
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). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

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:
Created by Alex Cotiugă on 2015/05/25 15:42
    

Get Connected