Update a user
PUT/api/web/v3/users/:id
Update the specified user. Caller requires the USERS:EDIT permission.
Request
Path Parameters
The UUID of the user to be updated.
- application/json
Body
required
Array [
]
Array [
]
Array [
]
Indicates if the user is granted a new frozen grace period. This value is not used when creating a user. If provided, it will be ignored.
The email address of this user. This value may or may not be required depending on configuration. If it is required, it must be specified when creating the user. If it is required, it must be specified when updating the user and a value is not currently set. It must be set to use EMAIL OTP authentication and other features that require an email address. To remove the existing value, set the value to an empty string.
Indicates if a verification email message should be sent to the user if the user now requires verification. The user's policy requiring user verification must also be enabled for the user. If not set, this value defaults to true.
An optional external ID for this user. This value can be used to track the external identity of an Identity as a Service user. To unset the external ID, specify an empty string.
An optional value that describes the source when the user is synchronized from an external source. To unset the external source, specify an empty string.
The first name of this user. This value may or may not be required depending on configuration. If it is required, it must be specified when creating the user. If it is required, it must be specified when updating the user and a value is not currently set. To remove the existing value, set the value to an empty string.
A list of group UUIDs to be assigned to this user. If specified, these groups replace existing groups.
The last name of this user. This value may or may not be required depending on configuration. If it is required, it must be specified when creating the user. If it is required, it must be specified when updating the user and a value is not currently set. To remove the existing value, set the value to an empty string.
Possible values: [da
, de
, en
, es
, fr
, it
, ja
, ko
, nl
, nb
, pl
, pt
, ru
, sv
, th
, tr
, zh-cn
, zh-tw
]
The locale of this user. If not set, the default account locale will be used. To remove the existing value, set the value to an empty string.
Indicates if all the user's authenticators are locked or not.
The mobile number of this user. This value may or may not be required depending on configuration. If it is required, it must be specified when creating the user. If it is required, it must be specified when updating the user and a value is not currently set. It must be set to use SMS OTP authentication. To remove the existing value, set the value to an empty string.
A list of oauth role UUIDs to be assigned to this user. If specified, these oauth roles replace existing oauth roles.
A list of organization UUIDs to be assigned to this user. If specified, these organizations replace existing organizations.
The phone number of this user. This value may or may not be required depending on configuration. If it is required, it must be specified when creating the user. If it is required, it must be specified when updating the user and a value is not currently set. It must be set to use VOICE OTP authentication. To remove the existing value, set the value to an empty string.
Possible values: [EMAIL
, SMS
, VOICE
, SYSTEM
]
Preferred OTP delivery type (SMS, EMAIL or VOICE) or SYSTEM to use the system defined default.
preferredOtpDeliveryContactAttributes
object
Preferred OTP delivery contact attribute for the given type (i.e., OTP_EMAIL, OTP_SMS, OTP_VOICE. An empty string means no override for that type).
Preferred OTP delivery contact attribute for the given type (i.e., OTP_EMAIL, OTP_SMS, OTP_VOICE. An empty string means no override for that type).
Indicates whether self-registration is required. If not set when the user is created, this value defaults to true.
The security ID of this user. The security ID is a unique value used to identity the user when performing smart card login to Microsoft Windows.
Possible values: [ACTIVE
, INACTIVE
]
The state of this user. Only users in the ACTIVE state can perform authentication. If not set when the user is created, this value defaults to ACTIVE.
userAliases
object[]
A list of user aliases for this user. Alias values must be unique with respect to the userId and other aliases of this user and other users.
The UUID of this user alias set when the user alias is created.
Possible values: [CUSTOM
, DERIVED
, USERID
]
The type of user alias. A value of USERID is used for an alias that will represent the actual user id value. A value of CUSTOM is used for aliases manually created by an administrator. A value of DERIVED is defined for future use and should not be used at this time.
The UUID of the user to which this user alias belongs.
The value for the user alias.
userAttributeValues
object[]
A list of user attribute values for this user.
A flag indicating if this user attribute value can be modified.
The UUID of this user attribute value set when the user attribute value is created.
The last time the attribute value was updated.
userAttribute
object
Information about user attribute definitions.
The UUID for this user attribute. Generated when the user attribute is created.
A flag indicating if users must have a value for this user attribute.
The name of this user attribute.
A flag indicating if this user attribute is one of the system defined user attributes.
Possible values: [NONE
, OTP_EMAIL
, OTP_SMS
, OTP_VOICE
]
Type of user attribute. Currently only used to specify the type of contact if the attribute is to be used for OTP delivery.
A flag indicating if this attribute is intended to be unique.
The UUID of the user attribute that defines this user attribute value. The userAttributeId must be provided when creating or modifying a user attribute value.
The UUID of the user to which this user attribute value belongs.
The value for the user attribute.
userExtraAttributes
object[]
A list of extra optional attributes for this user.
The name for the extra user attribute.
Possible values: [NONE
, OTP_EMAIL
, OTP_SMS
, OTP_VOICE
]
Type of custom user attribute.
The value for the extra user attribute.
The user ID for this user. This value is required when creating the user, optional during update. The userId must be unique with respect to aliases of this user and the userId and aliases of all other users.
The user principal name of this user. This value may or may not be required depending on configuration. If it is required, it must be specified when creating the user. If it is required, it must be specified when updating the user and a value is not currently set. To remove the existing value, set the value to an empty string.
Indicates whether verification is required. If not set when the user is created, this value defaults to true.
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Successful
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Access denied
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Conflict
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}