Table of Contents

Method RenameRoleAsync

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

RenameRoleAsync(Guid, string?, CancellationToken)

Replaces the name an operator reads a role by.

public Task<GrantWriteResult> RenameRoleAsync(Guid roleId, string? name, CancellationToken cancellationToken)

Parameters

roleId Guid

The role.

name string

The new name.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<GrantWriteResult>

What the act did.

Exceptions

ArgumentException

Thrown when name breaks FindNameRefusal(string?).

PrincipalNotAuthorizedException

Thrown when the caller does not hold AdminRolesWrite over the deployment.