Method ReadGroupsAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
ReadGroupsAsync(AdministrativeListingQuery, CancellationToken)
Reads one page of the groups the caller's scopes cover.
public Task<AdministrativeListingPage<UserGroup>> ReadGroupsAsync(AdministrativeListingQuery query, CancellationToken cancellationToken)
Parameters
queryAdministrativeListingQueryThe page asked for.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<AdministrativeListingPage<UserGroup>>
The page, in identifier order.
Exceptions
- ArgumentNullException
Thrown when
queryis null.- PrincipalNotAuthorizedException
Thrown when the caller holds AdminRead at no scope.