Table of Contents

Method ReadAssignmentsAsync

Namespace
MailFathom.Application.Access.Grants
Assembly
MailFathom.Application.dll

ReadAssignmentsAsync(AdministrativeListingQuery, CancellationToken)

Reads one page of the role assignments the caller's scopes cover.

public Task<AdministrativeListingPage<RoleAssignment>> ReadAssignmentsAsync(AdministrativeListingQuery query, CancellationToken cancellationToken)

Parameters

query AdministrativeListingQuery

The page asked for.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<AdministrativeListingPage<RoleAssignment>>

The page, in identifier order.

Exceptions

ArgumentNullException

Thrown when query is null.

PrincipalNotAuthorizedException

Thrown when the caller holds AdminRead at no scope.