---
title: "Get user model roles"
method: GET
path: "/api/v1/users/{id}/model-roles"
tags: ["Users"]
---

# Get user model roles

`GET /api/v1/users/{id}/model-roles`

## Path parameters

- `id` string, uuid, required — User membership ID

## Query parameters

- `connectionId` string, uuid — Filter results to a specific connection
- `modelId` string, uuid — Filter results to a specific model

## Response `200`

User model role assignments

- UsersGetModelRolesResponse
  - `membershipId` string, uuid, required — The user membership ID
  - `results` RoleAssignmentResult[], required — List of role assignments
    - `baseRole` string, required — The base role definition name
    - `connectionId` string, uuid, required — Connection this role applies to
    - `from` union, required — Origin of this role assignment
      - object
        - `type` 'USER', required — Role assigned directly to user
      - object
        - `type` 'ORG', required — Role inherited from organization
      - object
        - `type` 'BASE', required — Connection base role
      - object
        - `depth` number, required — Nesting depth of the group
        - `miniUuid` string, required — Short identifier of the group
        - `name` string, required — Name of the group
        - `type` 'GROUP', required — Role inherited from group membership
    - `modelId` string, uuid, required — Model this role applies to
    - `priority` number, required — Priority for role resolution (higher = more permissive)
    - `resolved` boolean, required — Whether this is the resolved (effective) role
    - `roleName` string, required — The role name (base or custom)

## Other responses

- `401` — Authentication required
- `403` — Permission denied - admin role required
- `404` — User not found

---

[API](https://skmtc.net/omniapp/apis/omni-api.md) · [All operations](https://skmtc.net/omniapp/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omniapp/omni-api/versions/4701f292c621/schema)
