Method DeleteRoleAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
DeleteRoleAsync(Guid, CancellationToken)
Removes a role nobody is assigned.
public Task<GrantWriteResult> DeleteRoleAsync(Guid roleId, CancellationToken cancellationToken)
Parameters
roleIdGuidThe role.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<GrantWriteResult>
What the act did, carrying how many assignments refused it.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold AdminRolesWrite over the deployment.