Table of Contents

Method CreateGroupAsync

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

CreateGroupAsync(Guid, string, Guid?, DateTimeOffset, CancellationToken)

Records a group.

Task<GrantWriteResult> CreateGroupAsync(Guid groupId, string name, Guid? organizationId, DateTimeOffset createdAt, CancellationToken cancellationToken)

Parameters

groupId Guid

The identifier the group is to carry.

name string

The name an operator reads it by, already judged.

organizationId Guid?

The organization it belongs to, or null for none.

createdAt DateTimeOffset

When it was recorded.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<GrantWriteResult>

Written, NameTaken, or UnknownOrganization.