getUser (username : string) : nodeset

The method “getUser” returns information about the specified user. The logged-in user must be the user administrator for this, so that information about the specified user is returned.

There is at least the element “userinfo” as a result, whereby the user-related attributes are not present if the logged-in user is not a user manager.

If the logged-in user would like to have the information about his own user however, the method “getCurrentEditor” can also be used. The user does not have to be the user administrator for this.

<xsl:stylesheet xmlns:xsl="" xmlns:edit="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="edit:login('testuser', 'test')">
<xsl:copy-of select="edit:getUser('testuser2')" />
<xsl:value-of select="edit:logout()" />
Retrieving information of a user

The called method supplies the following XML as a result:

<userinfo username="testuser" id="123">
Result from the example