RoleAssignmentCollection.GetAll Method

Definition

List all role assignments that apply to a scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/roleAssignments
  • Operation Id: RoleAssignments_ListForScope
  • Default Api Version: 2022-04-01
  • Resource: RoleAssignmentResource
public virtual Azure.Pageable<Azure.ResourceManager.Authorization.RoleAssignmentResource> GetAll (string filter = default, string tenantId = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.RoleAssignmentResource>
override this.GetAll : string * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.RoleAssignmentResource>
Public Overridable Function GetAll (Optional filter As String = Nothing, Optional tenantId As String = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RoleAssignmentResource)

Parameters

filter
String

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.

tenantId
String

Tenant ID for cross-tenant request.

skipToken
String

The skipToken to apply on the operation. Use $skipToken={skiptoken} to return paged role assignments following the skipToken passed. Only supported on provider level calls.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of RoleAssignmentResource that may take multiple service requests to iterate over.

Applies to