---
title: "Update User"
method: PATCH
path: "/v1/admin/users/{user_id}"
tags: ["admin"]
---

# Update User

`PATCH /v1/admin/users/{user_id}`

## Request

- Base URL: `https://api.claims.zicron.ai`
- URL: `https://api.claims.zicron.ai/v1/admin/users/{user_id}`
- Auth: none declared

Update a user (role, is_active, is_superadmin, MFA).

## Path parameters

- `user_id` string, required

## Request body

- UpdateUserRequest
  - `role` string, nullable
  - `persona` string, nullable
  - `allowed_claim_types` string[], nullable
  - `allowed_personas` string[], nullable
  - `is_active` boolean, nullable
  - `is_superadmin` boolean, nullable
  - `mfa_enabled` boolean, nullable
  - `require_mfa_setup` boolean, nullable

## Response `200`

Successful Response

- OrgUserResponse
  - `id` string, required
  - `email` string, required
  - `name` string, required
  - `role` string, required
  - `persona` string, nullable
  - `allowed_claim_types` string[], nullable
  - `allowed_personas` string[], nullable
  - `is_active` boolean, required
  - `is_superadmin` boolean, required
  - `mfa_enabled` boolean
  - `require_mfa_setup` boolean
  - `created_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zicron/apis/zicron-api.md) · [All operations](https://skmtc.dev/zicron/apis/zicron-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zicron/apis/zicron-api/revisions/abe62e22aa46?raw)
