Update existing user
Used to modify an existing user
Path Parameters
- userId int32 required
Id of the User to update
- application/json
Request Body
- fullName string
Change name for existing user
- newName string
Change user name for existing user. Username can be used for logging-in as an alternate to email-id if duplicate email-ids are present.
- email string
Change email-id for existing user. This email-id can be used for logging-in.
- userGroupOperation string
Possible values: [
ADD
,DELETE
,OVERWRITE
]Default value:
ADD
Allows adding to, overwriting and deleting existing user groups. default is adding to existing userGroups
userGroups object[]
- newPassword string
Change existing password for user. validationPassword must also be provided when changing password. Password should be in provided in Base64 format.
- validationPassword string
Provide the old password in Base64 format when updating the password. The new password has to be provided in the password tag.
plan object
- enabled boolean
enable or disable the user.
- userPrincipalName string
Change User Principal Name(UPN) for existing user. This User Principal Name can be used for logging-in.
- authenticationMethod string
Change the current authentication method of user. SAML user association can be removed using this.
- 200
- 400
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Bad Request
Requested Details not found
PUT /v4/user/:userid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://localhost/webconsole/api/V4/user/:userId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"fullName": "string",
"newName": "string",
"email": "string",
"userGroupOperation": "ADD",
"userGroups": [
{
"id": 0,
"name": "string"
}
],
"newPassword": "string",
"validationPassword": "string",
"plan": {
"id": 0,
"name": "string"
},
"enabled": true,
"userPrincipalName": "string",
"authenticationMethod": "string"
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/user/:userId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"fullName": "string",
"newName": "string",
"email": "string",
"userGroupOperation": "ADD",
"userGroups": [
{
"id": 0,
"name": "string"
}
],
"newPassword": "string",
"validationPassword": "string",
"plan": {
"id": 0,
"name": "string"
},
"enabled": true,
"userPrincipalName": "string",
"authenticationMethod": "string"
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/user/:userId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"fullName": "string",
"newName": "string",
"email": "string",
"userGroupOperation": "ADD",
"userGroups": [
{
"id": 0,
"name": "string"
}
],
"newPassword": "string",
"validationPassword": "string",
"plan": {
"id": 0,
"name": "string"
},
"enabled": true,
"userPrincipalName": "string",
"authenticationMethod": "string"
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/user/:userId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"fullName": "string",
"newName": "string",
"email": "string",
"userGroupOperation": "ADD",
"userGroups": [
{
"id": 0,
"name": "string"
}
],
"newPassword": "string",
"validationPassword": "string",
"plan": {
"id": 0,
"name": "string"
},
"enabled": true,
"userPrincipalName": "string",
"authenticationMethod": "string"
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/user/:userId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"fullName": "string",
"newName": "string",
"email": "string",
"userGroupOperation": "ADD",
"userGroups": [
{
"id": 0,
"name": "string"
}
],
"newPassword": "string",
"validationPassword": "string",
"plan": {
"id": 0,
"name": "string"
},
"enabled": true,
"userPrincipalName": "string",
"authenticationMethod": "string"
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/user/:userId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"fullName": "string",
"newName": "string",
"email": "string",
"userGroupOperation": "ADD",
"userGroups": [
{
"id": 0,
"name": "string"
}
],
"newPassword": "string",
"validationPassword": "string",
"plan": {
"id": 0,
"name": "string"
},
"enabled": true,
"userPrincipalName": "string",
"authenticationMethod": "string"
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/user/:userId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"fullName": "string",
"newName": "string",
"email": "string",
"userGroupOperation": "ADD",
"userGroups": [
{
"id": 0,
"name": "string"
}
],
"newPassword": "string",
"validationPassword": "string",
"plan": {
"id": 0,
"name": "string"
},
"enabled": true,
"userPrincipalName": "string",
"authenticationMethod": "string"
}'