http://onionworks.net/2006/data/application
leaveGroup (userReference : xlink, groupReference : xlink) : boolean
The method “leaveGroup” removes a user from a group.
If the function is used in the application context, the parameter “userReference” must be set. The user name to be removed from 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:leaveGroup('onion://usermanagement/users/123', 'onion://usermanagement/groups/123')">
The user was removed from the group 'Editor'.
</xsl:when>
<xsl:otherwise>The user could not be removed from the group.</xsl:otherwise>
</xsl:choose>Remove users from a group