memberOf (userReference : xlink, groupReference : string) : boolean

The method “memberOf” checks whether a user is a direct or – via a group include - indirect member of a group.

The parameter “userReference” specifies for which user the membership is to be checked.

This method also supplies “false” if the specified group or user is not present or the executing user is not logged into the system.

<xsl:stylesheet xmlns:xsl="" xmlns:app="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:value-of select="user:memberOf('onion://usermanagement/users/12', 'onion://usermanagement/groups/1')" />
Testing membership