Class UserGrantExplanation
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
Why one user holds each permission they hold within the reader's own scope, and what each of their credentials keeps of it.
public sealed record UserGrantExplanation : IEquatable<UserGrantExplanation>
- Inheritance
-
UserGrantExplanation
- Implements
- Inherited Members
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.
Constructors
- 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.
Fields
- MaximumSources
The most rows one explanation carries.
Properties
- Credentials
The user's credentials, each with the narrowing it applies, oldest first.
- Grant
Gets the part of the user's grant the rows compose.
- Sources
One row per permission, entry of a role's list granting it, and assignment, in the order the published set declares the permissions.
- SourcesTruncated
Whether the user holds more rows within the reader's scope than MaximumSources, so
Sourcesis a part of the answer.
- User
The user.