Skip to content

Update the profile of a User​

PATCH
/admin/users/{userId}

3.0.0: changes the optional profile fields email, emailVerified, displayName and disabled; null (or "") removes email or displayName. A disabled user cannot log in, all its tokens are revoked. 409 (code 4093) for an e-mail address of another user.

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Parameters​

Path Parameters

userId*

UserId to change

Type
string
Required

Request Body​

application/json
JSON
{
  
"email": "string",
  
"emailVerified": true,
  
"displayName": "string",
  
"disabled": true
}

Responses​

application/json
JSON
{
  
"user": "string",
  
"isAdmin": true,
  
"apiKey": "string",
  
"roles": [
  
  
"string"
  
],
  
"grants": [
  
  
{
  
  
  
"name": "string",
  
  
  
"read": true,
  
  
  
"write": true,
  
  
  
"administrate": true,
  
  
  
"grantType": "COLLECTION"
  
  
}
  
],
  
"email": "string",
  
"emailVerified": true,
  
"displayName": "string",
  
"identities": [
  
  
{
  
  
  
"provider": "string",
  
  
  
"subject": "string",
  
  
  
"email": "string"
  
  
}
  
],
  
"disabled": true,
  
"lastLoginAt": "2024-01-01T00:00:00Z",
  
"mfaEnabled": true
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.