leaveGroup (groupReference : xlink) : boolean

The method “leaveGroup” removes the user currently logged in from a group. The logged-in user must be the user administrator for this.

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

<xsl:stylesheet xmlns:xsl="" xmlns:user="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="user:login('testuser', 'test')">
<xsl:when test="user:leaveGroup('onion://usermanagement/groups/123')"> The user was successfuly removed from the group 'Editor'. </xsl:when>
<xsl:otherwise>The user could not be removed from the group.</xsl:otherwise>
Removing users from a group