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

# Create User Role Assignment

`POST /frontend/v1/user-role-assignments`

## Request

- The document declares no server URL.
- Auth: none declared

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

## Changes

- **2025-05-13** `5bae37ac644f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tesseral-labs/apis/frontendservice-api/changes/frontend/v1/user-role-assignments/post.md)

---

[API](https://skmtc.dev/tesseral-labs/apis/frontendservice-api.md) - [All operations](https://skmtc.dev/tesseral-labs/apis/frontendservice-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tesseral-labs/apis/frontendservice-api/revisions/e98ae37067b1?raw)
