Method ReadGroupMembersAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
ReadGroupMembersAsync(Guid, AdministrativeListingQuery, CancellationToken)
Reads one page of the members of one group the caller's scope covers.
public Task<AdministrativeListingPage<UserId>?> ReadGroupMembersAsync(Guid groupId, AdministrativeListingQuery query, CancellationToken cancellationToken)
Parameters
groupIdGuidThe group.
queryAdministrativeListingQueryThe page asked for.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<AdministrativeListingPage<UserId>>
The page in user identifier order, or null where no such group exists within the caller's scope.
Exceptions
- ArgumentNullException
Thrown when
queryis null.- PrincipalNotAuthorizedException
Thrown when the caller holds AdminRead at no scope.