http://onionworks.net/2006/data/application
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="http://www.w3.org/1999/XSL/Transform" xmlns:app="http://onionworks.net/2006/data/application" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
</xsl:stylesheet><xsl:choose>
</xsl:template><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>
</xsl:choose>Add users to a group