---
title: "Add a user to a role"
method: PUT
path: "/orgs/{orgId}/roles/{roleId}/users/{userId}"
tags: ["orgs/roles"]
---

# Add a user to a role

`PUT /orgs/{orgId}/roles/{roleId}/users/{userId}`

__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-role:w,o:w,s-o:w,o-role:w<br/><br/>__Endpoint name__: setUserToRole

## Path parameters

- `orgId` integer, required
- `roleId` integer, required
- `userId` integer, required

## Response `204`

No Content

---

[API](https://skmtc.dev/openpath/apis/openpath-api-documentation.md) · [All operations](https://skmtc.dev/openpath/apis/openpath-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openpath/openpath-api-documentation/revisions/d8a888c114fa/schema)
