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

# Get user group model roles

`GET /api/v1/user-groups/{id}/model-roles`

## Path parameters

- `id` string, required — User group short identifier (miniUuid)

## Query parameters

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

## Response `200`

User group model role assignments

- UserGroupsGetModelRolesResponse
  - `results` UserGroupRoleAssignmentResult[], required — List of role assignments
    - `baseRole` string, required — The base role definition name
    - `connectionId` string, uuid, required — Connection this role applies to
    - `from` UserGroupRoleOrigin, required — Origin of this role assignment
      - `depth` number, required — Nesting depth of the group (0 for direct assignment)
      - `miniUuid` string, required — Short identifier of the group
      - `name` string, required — Name of the group
      - `type` 'GROUP', required — Role assigned to group
    - `modelId` string, uuid, required — Model this role applies to
    - `priority` number, required — Priority for role resolution (higher = more permissive)
    - `roleName` string, required — The role name (base or custom)
  - `userGroupId` string, required — The user group short identifier

## Other responses

- `401` — Authentication required
- `403` — Permission denied - admin role required
- `404` — User group 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)
