Documentation Center

add_user

Add a User.

Description

The user name, password, and group identity are added to the database.

Parameters

action
add_user
password
Password.
user
User name to add.
groups
A list of the groups that user should belong to. This is either a list, or a comma separated string containing the group names.

Example URL

http://<host>:<port>/<context>/web/user.xql?action=add_user&password=<value>&user=<value>&groups=<value>

Successful Result

This function returns a standard API result element (<result status='SUCCESS' statusCode='0' message='Localized Message' messageKey='message.key'/>). A statusCode of 0 indicates a successful execution. Any other statusCode indicates a failure.

Failed Result

Accessing this API feature requires the "Manage application" permission, and the function will throw a permission exception if the permission is not available. If SSO is active, this also returns an error.