Table of Contents

Method RenameGroupAsync

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

RenameGroupAsync(Guid, string?, CancellationToken)

Replaces the name an operator reads a group by.

public Task<GrantWriteResult> RenameGroupAsync(Guid groupId, string? name, CancellationToken cancellationToken)

Parameters

groupId Guid

The group.

name string

The new name.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<GrantWriteResult>

What the act did; UnknownGroup also for a group outside the caller's scope.

Exceptions

ArgumentException

Thrown when name breaks FindNameRefusal(string?).

PrincipalNotAuthorizedException

Thrown when the caller holds AdminRolesWrite at no scope.