Table of Contents

Class Role

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

One role: a name unique across the deployment and the list of permissions it grants, written as names and patterns.

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

Remarks

No use case asks whether a caller holds a role: it checks a permission the role grants, so a role is one decision about many people written once. The one thing read off the role itself is whether its list widens on upgrade, which decides who may give it.

Constructors

Role(Guid, string, RolePermissions, DateTimeOffset)

One role: a name unique across the deployment and the list of permissions it grants, written as names and patterns.

Fields

MaximumNameLength

The longest name a role is recorded under.

Properties

CreatedAt

When the role was recorded.

Id

The identifier every assignment of the role names it by.

Name

The name an operator reads the role by.

Permissions

What the role grants wherever it is assigned, and any stored entry that grants nothing in this build.