Apache CloudStack 4.23.0.0 Root Admin API Reference
createUser
Creates a user for an account that already exists
Request parameters
| Parameter Name | Description | Required |
| account | Creates the user under the specified account. If no account is specified, the username will be used as the account name. | true |
| true | ||
| firstname | Firstname | true |
| lastname | Lastname | true |
| password | Clear text password (Default hashed to SHA256SALT). If you wish to use any other hashing algorithm, you would need to write a custom authentication adapter See Docs section. | true |
| username | Unique username. | true |
| domainid | Creates the user under the specified domain. Has to be accompanied with the account parameter | false |
| passwordchangerequired | Provide true to mandate the User to reset password on next login. | false |
| timezone | Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format. | false |
| userid | User UUID, required for adding account from external provisioning system | false |
Response Tags
| Response Name | Description |
| id | The user ID |
| account | The Account name of the user |
| accountid | The Account ID of the user |
| accounttype | The Account type of the user |
| apikey | The API key of the user |
| apikeyaccess | Whether api key access is Enabled, Disabled or set to Inherit (it inherits the value from the parent) |
| created | The date and time the user Account was created |
| domain | The domain name of the user |
| domainid | The domain ID of the user |
| The user email address | |
| firstname | The user firstname |
| icon | Base64 string representation of the resource icon |
| is2faenabled | True if user has two factor authentication enabled |
| is2famandated | True if user has two factor authentication is mandated |
| iscallerchilddomain | The boolean value representing if the updating target is in caller's child domain |
| isdefault | True if user is default, false otherwise |
| lastname | The user lastname |
| roleid | The ID of the role |
| rolename | The name of the role |
| roletype | The type of the role |
| secretkey | The secret key of the user |
| state | The user state |
| timezone | The timezone user was created in |
| username | The user name |
| usersource | The source type of the user in lowercase, such as native, ldap, saml2 |