---
title: "Create User Role Assignment"
method: POST
path: "/v1/user-role-assignments"
tags: ["BackendService"]
---

# Create User Role Assignment

`POST /v1/user-role-assignments`

Create a User Role Assignment.

## Request body

- UserRoleAssignment — UserRoleAssignment represents a User being assigned to a Role.
  - `id` string — The User Role Assignment ID. Starts with `user_role_assignment_...`.
  - `userId` string — The User ID.
  - `roleId` string — The Role ID.

## Response `200`

OK

- CreateUserRoleAssignmentResponse
  - `userRoleAssignment` UserRoleAssignment — UserRoleAssignment represents a User being assigned to a Role.
    - `id` string — The User Role Assignment ID. Starts with `user_role_assignment_...`.
    - `userId` string — The User ID.
    - `roleId` string — The Role ID.

## Other responses

- `400` — API Error
- `401` — API Error
- `403` — API Error
- `404` — API Error

---

[API](https://skmtc.net/tesseral-labs/apis/backendservice-api.md) · [All operations](https://skmtc.net/tesseral-labs/apis/backendservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tesseral-labs/backendservice-api/versions/fe83f78ae20a/schema)
