This [[Module Library|XQuery Module]] contains functions for creating and administering database users. The [[User Management]] article gives more information on database users and permissions.
=Conventions=
</user>
</pre>
|}
=Errors=
{| class="wikitable" width="100%"
! width="110"|Code
|Description
|-
|{{Code|BXUS0001}}
|The specified user name is invalid.
|-
|{{Code|BXUS0002}}
|The specified database name is invalid.
|-
|{{Code|BXUS0003}}
|The specified permission is invalid.
|-
|{{Code|BXUS0004}}
|The specified user does not exist.
|-
|{{Code|BXUS0005}}
|The "admin" user cannot be modified.
|-
|{{Code|BXUS0006}}
|Name of old and new user is equal.
|-
|{{Code|BXUS0007}}
|A local permission can only be 'none', 'read' or 'write'.
|-
|{{Code|BXUS0008}}
|A specified user is currently logged in.
|-
|{{Code|BXUS0009}}
|A user, or its associated permission, can only be created, modified or dropped once.
|-
|{{Code|BXUS0010}}
|A user cannot be both altered and dropped.
|}