Role Assignments - List For Scope
Gets role assignments for a scope.
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignments?api-version=2015-07-01
GET https://management.azure.com/{scope}/providers/Microsoft.Authorization/roleAssignments?$filter={$filter}&api-version=2015-07-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
scope
|
path | True |
|
The scope of the role assignments. |
api-version
|
query | True |
|
The API version to use for this operation. |
$filter
|
query |
|
The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK - Returns an array of role assignments. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
List role assignments for scope
Sample Request
Sample Response
{
"value": [
{
"properties": {
"roleDefinitionId": "/subscriptions/subId/providers/Microsoft.Authorization/roleDefinitions/roledefinitionId",
"principalId": "Pid",
"scope": "/subscriptions/subId/resourcegroups/rgname"
},
"id": "/subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/roleAssignments/roleassignmentId",
"type": "Microsoft.Authorization/roleAssignments",
"name": "raId"
}
]
}
Definitions
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Role |
Role Assignments |
Role |
Role assignment list operation result. |
Role |
Role assignment properties with scope. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
|
The additional info. |
type |
|
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
|
The error code. |
details |
The error details. |
|
message |
|
The error message. |
target |
|
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
RoleAssignment
Role Assignments
Name | Type | Description |
---|---|---|
id |
|
The role assignment ID. |
name |
|
The role assignment name. |
properties |
Role assignment properties. |
|
type |
|
The role assignment type. |
RoleAssignmentListResult
Role assignment list operation result.
Name | Type | Description |
---|---|---|
nextLink |
|
The URL to use for getting the next set of results. |
value |
Role assignment list. |
RoleAssignmentPropertiesWithScope
Role assignment properties with scope.
Name | Type | Description |
---|---|---|
principalId |
|
The principal ID. |
roleDefinitionId |
|
The role definition ID. |
scope |
|
The role assignment scope. |