---
title: "GET /{scope}/providers/Microsoft.Authorization/roleAssignments"
method: GET
path: "/{scope}/providers/Microsoft.Authorization/roleAssignments"
tags: ["RoleAssignments"]
---

# GET /{scope}/providers/Microsoft.Authorization/roleAssignments

`GET /{scope}/providers/Microsoft.Authorization/roleAssignments`

Gets role assignments for a scope.

## Path parameters

- `scope` string, required

## Query parameters

- `$filter` string

## Parameters

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

## Response `200`

OK - Returns an array of role assignments.

- RoleAssignmentListResult — Role assignment list operation result.
  - `value` RoleAssignment[] — Role assignment list.
    - `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
  - `nextLink` string — The URL to use for getting the next set of results.

## 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/:scope/providers/Microsoft.Authorization/roleAssignments/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)
