Update User By Id V2 Using PATCH

Update User By Id V2 Using PATCH

This API is used to update user role(s) by ID.

Request
URI
PATCH
https://{api_host}/lcm/authzn/api/v2/users/{vmid}
COPY
Path Parameters
string
vmid
Required

vmid


Request Body

userRequestDTO

UserRequestDTO of type(s) application/json
Optional
{
    "displayName": "configadmin configadmin",
    "domain": "System Domain",
    "isDisabled": false,
    "mappedRoles": [
        "string"
    ],
    "password": "locker:password:<vmid>:<alias>",
    "providerIdentifier": "6304f1ed-17e0-4128-b86f-e29c6563e32f",
    "userMetadata": {
        "additionalMeta": [
            "string"
        ],
        "distinguishedName": "string",
        "emails": [
            "[email protected]"
        ],
        "externalId": "764195c6-5504-4f56-8c34-b372d47f5176",
        "familyName": "user1",
        "givenName": "LCM"
    },
    "userPrincipalName": "configadmin_upn",
    "userType": "VIDM_LOCAL_USER",
    "username": "configadmin"
}
Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns UserDTO of type(s) application/json
"UserDTO Object"
string
displayName
Optional

Display Name

string
domain
Optional

Domain

boolean
isDisabled
Optional

isDisabled

string
password
Optional

password

string
providerIdentifier
Optional

Provider ID

array of object
roleMappings
Optional

roleMappings

object
userMetadata
Optional

userMetadata

string
userPrincipalName
Optional

User Principal Name

string
userType
Optional

User Type

string
username
Optional

Username

string
vmid
Optional

User ID


204

No Content

Operation doesn't return any data structure

401

Unauthorized

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Not Found

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


500

Internal Server Error

Returns GenericErrorResponseDTO of type(s) application/json
"GenericErrorResponseDTO Object"
string
errorCode
Optional

errorCode

string
errorLabel
Optional

errorLabel

string
message
Optional

message

array of string
recommendations
Optional

recommendations


Code Samples
COPY
                    curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}'