Table of Contents

Constructor UserGrantExplanation

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

UserGrantExplanation(UserId, IReadOnlyList<GrantSource>, bool, IReadOnlyList<UserCredential>)

Why one user holds each permission they hold within the reader's own scope, and what each of their credentials keeps of it.

public UserGrantExplanation(UserId User, IReadOnlyList<GrantSource> Sources, bool SourcesTruncated, IReadOnlyList<UserCredential> Credentials)

Parameters

User UserId

The user.

Sources IReadOnlyList<GrantSource>

One row per permission, entry of a role's list granting it, and assignment, in the order the published set declares the permissions.

SourcesTruncated bool

Whether the user holds more rows within the reader's scope than MaximumSources, so Sources is a part of the answer.

Credentials IReadOnlyList<UserCredential>

The user's credentials, each with the narrowing it applies, oldest first.

Remarks

The rows are the ones the reader could list as assignments: what the user holds through a group or at a scope the reader's grant does not cover is left out, so an organization's administrator explaining a member reads that organization's part of the member's grant and nothing of the deployment's. Grant is therefore that part, and what a credential is shown to keep is what it keeps of that part.