joinGroup (userReference : xlink, groupReference : xlink) : boolean

The method “joinGroup” adds a user to a group.

If the function is used in the application context, the parameter “userReference” must be set. The user name to be added to a group is specified here.

If successful, “true” is returned as the return value, otherwise “false”.

The web application user must be the user administrator in order to execute this method.

<xsl:stylesheet xmlns:xsl="" xmlns:app="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:when test="app:joinGroup('onion://usermanagement/users/123', 'onion://usermanagement/groups/123')"> Der user is now in the group 'Editors'. </xsl:when>
<xsl:otherwise>The user could not be added to the group.</xsl:otherwise>
Add users to a group