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

# Update User

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

Update an Organization member's roles and product seats.

## Path parameters

- `user_id` string, uuid, required — User ID.

## Request body

- AdminOrganizationMemberUpdate
  - `role_names` string[], nullable — Simplified role names to assign. Mutually exclusive with 'roles'.
  - `roles` union — Role values to assign. Mutually exclusive with 'role_names'.
    - UserRole[]
    - StaticOrganizationRoles[]
  - `role_name` 'member' | 'billing_manager' | 'organization_admin', nullable — Deprecated single role name, kept for backward compatibility. Mutually exclusive with 'role'.
  - `role` union — Deprecated legacy single role value, kept for backward compatibility. Mutually exclusive with 'role_name'.
    - 'A' | 'M' | 'B'
    - '0d48f530-095c-43fe-8aea-6673bcacabe6' | 'c955f4e1-9477-43f0-8349-6fbc629fccc9' | '7bde5959-d676-47d2-b779-35b64323d278'
  - `subscription_types` string[], nullable — Product seats to assign to the member.

## Response `200`

OK

- AdminOrganizationMemberOUT
  - `uuid` string, uuid, required — Organization member ID.
  - `oid_id` string, uuid, nullable, required — Identity provider ID for the member.
  - `name` string, nullable, required — Name of the Organization member.
  - `email` string, nullable, required — Email address of the Organization member.
  - `is_sso_outsider` boolean, nullable — Whether the member is outside the SSO domain.
  - `workspaces` MemberWorkspaceInfo[], nullable — Workspaces the member belongs to.
    - `uuid` string, uuid, required — Workspace ID.
    - `name` string, required — Workspace name.
    - `is_default` boolean, required — Whether this is the default Workspace for the Organization.
    - `raw_roles` union, required — Workspace roles assigned to the member.
      - WorkspaceRole[]
      - StaticWorkspaceRoles[]
    - `raw_role` union, required — Deprecated single workspace role. Use 'raw_roles' instead.
      - 'A' | 'M'
      - 'd7ea77c5-9260-41d0-ab26-52b5add3ee56' | '48436751-ee56-44bd-8a2d-712233977821' | '375cd0db-3bbe-4b79-80f3-954ccf04f3d1' | '578584f1-4319-4c88-9948-38a5184483b6' | 'd79b3027-4eb2-4521-8722-825acfee7d8b' | '252a0825-40b9-4b98-be80-7658956f13e9' | '17aa61c5-1c61-477e-a40a-e52c8ccd74b9' | 'b23cd6e0-91cd-4a8a-9869-b30366bf3966' | '731eb2be-a74f-4070-b797-35bf7009e553' | 'ff86d432-7f27-47f8-b02f-b5c102ef6a55' | '0f9acbf6-93b5-42c7-a227-fc7652755f65' | 'b23cd6e0-91cd-4a8a-9869-b30366bf3966'
  - `subscriptions` MemberSubscriptionOUT[] — Subscriptions assigned to the member.
    - `type` 'API' | 'CHAT' | 'ON_PREMISE' | 'LICENSE' | 'MISTRAL_CODE', required
    - `plan` union — Plan assigned to the member.
      - 'FREE' | 'PAY_AS_YOU_GO'
      - 'INDIVIDUAL' | 'EDU' | 'TEAM'
      - 'ENTERPRISE'
    - `status` 'NS' | 'S' | 'A' | 'CF' | 'CG' | 'C' | 'GP'
    - `user` string, nullable — User ID associated with the subscription.
    - `self_service` boolean, nullable — Whether the subscription was created through self-service.
    - `member_has_access` boolean, nullable — Whether the member currently has access to the plan.
  - `raw_roles` union, required — Organization roles assigned to the member.
    - UserRole[]
    - StaticOrganizationRoles[]
  - `raw_role` union, required — Deprecated single organization role. Use 'raw_roles' instead.
    - 'A' | 'M' | 'B'
    - '0d48f530-095c-43fe-8aea-6673bcacabe6' | 'c955f4e1-9477-43f0-8349-6fbc629fccc9' | '7bde5959-d676-47d2-b779-35b64323d278'
  - `subscription_types` string[], nullable — Product seats assigned to the member.
  - `created_at` string, date-time, required — Date the member was added to the Organization.

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/revisions/933c4ebdcd72/schema)
