---
title: "Add User Role"
method: POST
path: "/api/access/v2/users/{userId}/access-levels"
tags: ["Users V2"]
---

# Add User Role

`POST /api/access/v2/users/{userId}/access-levels`

Use this API to add a new role to a specific user.

## Path parameters

- `userId` string, uuid, required

## Request body

- PlatformAccessManagementPublicAccessLevelRequest
  - `organizationId` string, uuid, required — The unique identifier of the organization.
  - `roleId` string, uuid, required — The unique identifier of the role.

## Response `201`

Access level added successfully

## Other responses

- `400` — Invalid request data - malformed UUID, invalid request body, attempting to add INVITED role, or user already has access level in the specified organization
- `401` — Unauthorized - Invalid or missing authentication
- `403` — Forbidden - Insufficient permissions
- `404` — Organization or role not found
- `409` — Conflict - User does not exist
- `429` — Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500` — Internal Server Error

---

[API](https://skmtc.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
