Table of Contents

Class GrantSource

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

Why a user holds one permission at one scope: the role that lists it, the pattern it is listed through if it is not written out, the assignment that gives the role, and the group the assignment reaches them through, if any.

public sealed record GrantSource : IEquatable<GrantSource>
Inheritance
GrantSource
Implements
Inherited Members

Remarks

One row of the answer ADR 0012 gives every grant: this role, directly or through this group, at this scope. Groups are not nested, so the row is the whole explanation rather than the first step of a path. A name nobody wrote out is traced to the entry that reaches it, so a role listing a permission by name and through a pattern as well explains it twice, once per entry, because removing either leaves the other granting it.

Constructors

GrantSource(MailFathomPermission, string?, Guid, string, Guid, Guid?, string?, AssignmentScope)

Why a user holds one permission at one scope: the role that lists it, the pattern it is listed through if it is not written out, the assignment that gives the role, and the group the assignment reaches them through, if any.

Properties

AssignmentId

The assignment giving the role.

GroupId

The group the assignment names, or null where it names the user directly.

GroupName

The name an operator reads that group by, or null where it names the user directly.

IsInert

Gets whether the permission reaches nothing where it is held, because every operation it covers is the deployment's alone and the assignment names a narrower scope.

Pattern

The pattern on the role's list that reaches the permission, as written, or null where the role lists the permission by name.

Permission

The permission held.

RoleId

The role listing it.

RoleName

The name an operator reads the role by.

Scope

The scope the assignment names, which is where the permission is held.