CreateUser
Adds or Updates a User object.
Syntax
The following syntax includes all required properties. You can set any other properties for the Company and User objects.
<CreateUser>
<Company>
<nickname>Example</nickname>
</Company>
<User>
<nickname>mcollins</nickname>
<password>suiteprojectspro_password</password>
<addr>
<Address>
<email>mcollins@example.com</email>
</Address>
</addr>
</User>
</CreateUser>
Usage
Use the CreateUser command to add a new user or update an existing user. The maximum number of objects you can add or update with one XML API call is 1,000.
To add objects of types other than User, use the Add command instead.
You can set custom field values as well as standard field values when adding User objects. See Reading or Setting Custom Field Values Inline.
You can set the employee work schedules when adding User objects. See User.
Review the following guidelines:
-
You must be authenticated as an account administrator or have the View, modify, and create new users role permission to use the
CreateUsercommand. -
You must set a
passwordwhen using theCreateUsercommand to create a new user record except for generic user records (genericset to 1). This is also true when using theCreateUsercommand with a foreign key lookup that results in inserting a new user record. -
If you are using SAML for authentication in to your SuiteProjects Pro account:
-
You can set a
passwordand enable SAML authentication for the user (setting the Boolean custom fieldsaml_auth__ctotrue) when using theCreateUsercommand to create a new user record. -
You cannot set a
passwordif SAML authentication is enabled for the user (saml_auth__cset totrue) when using theCreateUsercommand with a foreign key lookup to update an existing user record. The API will return the following error: “System.Exception: Not enabled to edit password: Edit of passwords is not allowed”.
-
-
Limits are enforced to prevent you from creating or activating users if doing so would exceed the number of user licenses purchased for your account. If no user licenses of the appropriate type are available, the
CreateUsercommand creates a new user record, but sets it as inactive (clears the Active box on the employee record), or to activate a user record (to check the Active box on the employee record). For more information about SuiteProjects Pro licensing and compliance, see Licenses.
Attributes
|
Attribute |
Usage |
|---|---|
|
|
XML API Only — Set the |
|
|
XML API Only — Set the |
|
|
Use the
|
Arguments
|
Name |
Type |
Description |
|---|---|---|
|
|
Object |
A |
|
|
Object |
A |
Response
A User object.