---
title: "Assign role to user"
method: POST
path: "/users/{userId}/roles/{roleId}"
tags: ["Users"]
---

# Assign role to user

`POST /users/{userId}/roles/{roleId}`

## Response `204`

Role assigned.

## Other responses

- `404` — unresolved $ref

---

[API](https://skmtc.dev/sphereon-opensource/apis/user-manager-api.md) · [All operations](https://skmtc.dev/sphereon-opensource/apis/user-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphereon-opensource/user-manager-api/revisions/6d47be2a94e0/schema)
