---
title: "GET /{roleId}"
method: GET
path: "/{roleId}"
tags: ["RoleAssignments"]
---

# GET /{roleId}

`GET /{roleId}`

Gets a role assignment by ID.

## Path parameters

- `roleId` string, required

## Parameters

- `../../../../../common-types/resource-management/v2/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Response `200`

OK - Returns the role assignment.

- RoleAssignment — Role Assignments
  - `id` string — The role assignment ID.
  - `name` string — The role assignment name.
  - `type` string — The role assignment type.
  - `properties` RoleAssignmentPropertiesWithScope — Role assignment properties with scope.
    - `scope` string — The role assignment scope.
    - `roleDefinitionId` string — The role definition ID.
    - `principalId` string — The principal ID.
    - `principalType` 'User' | 'Group' | 'ServicePrincipal' | 'ForeignGroup' — The principal type of the assigned principal ID.
    - `canDelegate` boolean — The Delegation flag for the role assignment

## Other responses

- `default` — Error response describing why the operation failed.

## Changes

- **2021-02-21** (2018-09-01-preview) `e30a31d275fb` — 1 warning
  - deleted the `query` request parameter `api-version`

[Change history](https://skmtc.dev/azure/apis/authorizationmanagementclient-5/changes/:roleId/get.md)

---

[API](https://skmtc.dev/azure/apis/authorizationmanagementclient-5.md) · [All operations](https://skmtc.dev/azure/apis/authorizationmanagementclient-5/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/authorizationmanagementclient-5/revisions/209daa6419a3/schema)
