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
groupIdGuidThe group.
namestringThe new name.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<GrantWriteResult>
What the act did; UnknownGroup also for a group outside the caller's scope.
Exceptions
- ArgumentException
Thrown when
namebreaks FindNameRefusal(string?).- PrincipalNotAuthorizedException
Thrown when the caller holds AdminRolesWrite at no scope.