ZITADEL Docs
APIsCore ResourcesV1Organization Objects

UpdateUserName

Change user name

Deprecated: use user service v2 UpdateUser instead.

Change the username of the user. Be aware that the user has to log in with the newly added username afterward.

PUT
/users/{user_id}/username

Path Parameters

user_id*string

Request Body

application/json

userName*string
[key: string]?never

Response Body

application/json

application/json

curl -X PUT "https://loading/users/string/username" \  -H "Content-Type: application/json" \  -d '{    "userName": "string"  }'
{
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?