Table of Contents

Method ResolveAsync

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

ResolveAsync(UserId, CancellationToken)

Computes what one user holds.

public Task<ScopedGrant> ResolveAsync(UserId user, CancellationToken cancellationToken)

Parameters

user UserId

The user.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<ScopedGrant>

Every permission the user holds, each with the scopes it is held at; empty for a user assigned nothing.

Exceptions

ArgumentException

Thrown when user names nobody.