Class UserGroup
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
One group of users, which a role can be assigned to so each member holds it.
public sealed record UserGroup : IEquatable<UserGroup>
- Inheritance
-
UserGroup
- Implements
- Inherited Members
Remarks
A group holds users and nothing else, so no group is a member of another and why somebody holds a permission is always one row away. A group in an organization holds only that organization's members, which is what lets the organization's administrator manage it; a group in no organization is the deployment's and holds anybody.
Constructors
- UserGroup(Guid, string, Guid?, int, DateTimeOffset)
One group of users, which a role can be assigned to so each member holds it.
Fields
- MaximumNameLength
The longest name a group is recorded under.
Properties
- CreatedAt
When the group was recorded.
- Id
The identifier every membership and assignment names the group by.
- MemberCount
How many users belong to it.
- Name
The name an operator reads the group by, unique across the deployment.
- OrganizationId
The organization the group belongs to, or null for a group in none.