Administration

Assign a role to a user *within the active organisation*.

Assign a role to a user within the active organisation.

Multi-org refactor finalisé (2026-04-29) : the role is added to the
user's `Membership` for the current tenant (table `membership_roles`).
La table legacy `user_roles` a été droppée.

Permissions requises : admin:all

post/api/v1/admin/users/{user_id}/roles

Request

  • Base URL: https://erp.eyeot.fr/api/v1
  • URL: https://erp.eyeot.fr/api/v1/api/v1/admin/users/{user_id}/roles
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

role_idstring uuid required

Response

Succès — payload {data, meta} (cf. API-GUIDE §3.1)

Changes

No recorded changes to this operation across all 1 revision of this API.