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

deleteUser (userReference : xlink) : boolean

The method “deleteUser” deletes a user from the user administration. Moreover, the logged-in user can only delete the users he could also create via the rights system. This means a user manager cannot delete an administrator or other user administrators for example.

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:choose>
<xsl:when test="app:deleteUser('onion://usermanagement/users/123')">The user was deleted successfuly.</xsl:when>
<xsl:otherwise>The user could not be deleted.</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
Deleting users