Application Programming Interface Guide > Web Services Operations > Operations Reference > createUser
 
createUser
Create a new user within a domain. For some domains this creates a home folder for the user under /users/domainName/userName. The password element is ignored when creating users in a non-COMPOSITE domain. If the domain is EXTERNAL, a read-only reference to the user is created.
Note: By design, this operation returns a NotAllowed fault if you attempt to use it to create a user in the LDAP domain or any other external domain.
Location
/services/webservices/system/admin/user/operations/
Request Elements
domainName: The domain name to create the user in.
userName: The user name.
password (optional): The user’s password. This is optional for some domains. This is silently ignored for non-COMPOSITE domains.
explicitRights (optional): A bit mask for a user’s rights. For a table of values, see User and Group Rights Mask.
annotation (optional): A description of the user.
Response Elements
N/A
Faults
DuplicateName: If an user with the same name already exists.
IllegalArgument: If the user name is not valid within the domain.
NotAllowed: If the domain is external, such as an LDAP domain.
NotAllowed: If the domain does not allow users to be created.
NotAllowed: If an attempt is made to use this operation with an insufficient license.
NotFound: If the domain does not exist.
Security: If the user does not have the ACCESS_TOOLS and MODIFY_ALL_USERS rights.