Table of Contents

Constructor UserGroup

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

UserGroup(Guid, string, Guid?, int, DateTimeOffset)

One group of users, which a role can be assigned to so each member holds it.

public UserGroup(Guid Id, string Name, Guid? OrganizationId, int MemberCount, DateTimeOffset CreatedAt)

Parameters

Id Guid

The identifier every membership and assignment names the group by.

Name string

The name an operator reads the group by, unique across the deployment.

OrganizationId Guid?

The organization the group belongs to, or null for a group in none.

MemberCount int

How many users belong to it.

CreatedAt DateTimeOffset

When the group was recorded.

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.