---
title: "PUT /users/{userId}"
method: PUT
path: "/users/{userId}"
tags: ["Users"]
---

# PUT /users/{userId}

`PUT /users/{userId}`

Update user properties.

## Path parameters

- `userId` string, required

## Request body

- User — Represents a user in the system.
  - `displayName` string — Name
  - `email` string, required — User email
  - `password` string — User password.
  - `ignoreTfa` boolean, required — Ignore 2-step verification on login or not.
  - `scope` 'adminAuth' | 'userAuth', required — Scopes of authentication, right know in our system there are only 3 scopes. admin and user. any API route protect by one of them.
  - `passwordChangeRequired` boolean — Whenever the user required to set new password, during default password usage, password expiration, etc.

## Response `204`

No content

## Other responses

- `501` — Server error

---

[API](https://skmtc.net/casanet/apis/casanet-local-server.md) · [All operations](https://skmtc.net/casanet/apis/casanet-local-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casanet/casanet-local-server/versions/0f9f76cd80d5/schema)
