Add User Profile V3
POST/v3/user
Adds either a user profile or a service account profile.
The required request body parameters differ, depending on whether you are adding a user account or a service account. Specify whether you're adding a user account or service account through the request parameter type.
The required parameters to add a user account are:
- firstName
- lastName
- roleIds
- defaultRoleId
- timeZone
The required parameters to add a service account are:
- username
- accessKeyName
- accessKeyExpiration (Required only if enableKeyExpiration is true)
- defaultRoleId
- timeZone
Request
- application/json
Body
required
Model for User Account
Access key expiration timestamp in milliseconds
Access key name
Access keys allowed
Default Role ID
Email ID
true = Enable access key expiration. Default is false.
First name. Maximum length is 300 characters.
Last name. Maximum length is 300 characters.
Role IDs
Time zone (e.g. America/Los_Angeles)
Possible values: [USER_ACCOUNT
, SERVICE_ACCOUNT
]
User type. Default is USER_ACCOUNT.
User or service account name. Maximum length is 300 characters.
Responses
- 200
- 400
- 409
successful operation
- application/json
- Schema
- Example (from schema)
Schema
Access key ID
Access key secret
{
"id": "string",
"secretKey": "string"
}
empty_user_profile_provided / missing_email / wrong_email_format / missing_first_name / missing_time_zoneinvalid_time_zone / missing_required_parameter / no_role_assigned_to_user / exceeding_role_limit_number / default_role_not_belonging_to_user_role_list / invalid_user_role
duplicate_user_name