cogExpose a REST API to access various groups informations
Developed by

Thomas Mortagne

0 Votes
LicenseGNU Lesser General Public License 2.1

Require XWiki 11.10+

Installable with the Extension Manager


This extension expose a REST API to access various group related information.

List the groups of a member


  • {member}: the id of the member
  • recursive: false (the default) if only the direct groups should be returned, true to take into account groups of groups

The result provide the following:

  • input: the member id provided in input
  • reference: the resolved member complete reference
  • groups: the list of found groups (listed with they complete reference)

It's possible to customize how the member reference is resolving in file:

#-# The reference of the class of the object which contains the property to compare with the input member id.
#-# The default is:
# grouprest.user.mapping.class=XWiki.XWikiUsers

#-# The name of the property which which to compare input value.
#-# For example if you want to pass the first name of a user in the REST URL:

Both XML (default) and JSON are supported as results (controlled by the HTTP accept).

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<memberGroups xmlns="">
 "input": "Administrator",
 "reference": "xwiki:XWiki.Admin",
 "goups": [

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.

Release Notes




Dependencies for this extension (org.xwiki.contrib.grouprest:grouprest-server 1.1):


Get Connected