|
* After a fresh installation, {{Code|user:list-details()}} returns output similar to the following one:
<syntaxhighlight pre lang="xml">
<user name="admin" permission="admin">
<password algorithm="digest">
</password>
</user>
</syntaxhighlightpre>
|- valign="top"
| '''Errors'''
|
* Store initial groups information:
<syntaxhighlight pre lang="'xquery"'>
user:update-info(element info {
for $group in ('editor', 'author', 'writer')
return element group { $group }
})
</syntaxhighlightpre>
* Add a group to a specific user:
<syntaxhighlight pre lang="'xquery"'>
user:update-info(<info group='editor'/>, 'john')
</syntaxhighlightpre>
|}