http://onionworks.net/2006/data/application

addGroupInclude (groupReference : xlink, includeReference : xlink) : boolean

A hierarchy can be created between two groups with the method “addGroupInclude()”. The group of the first parameter “groupReference” thus inherits all rights of the group, which is specified as the second parameter “includeReference”.

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

<xsl:stylesheet xmlns:app="http://onionworks.net/2006/data/application" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:if test="app:addGroupInclude('onion://usermanagement/groups/123', 'onion://usermanagement/groups/1')"> The group 'testgroup' now also have the right the group "Users" have. </xsl:if>
</xsl:template>
</xsl:stylesheet>