Table of Contents

Method ReplaceRolePermissionsAsync

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

ReplaceRolePermissionsAsync(Guid, RolePermissions, CancellationToken)

Replaces the whole list of permissions a role grants.

Task<GrantWriteResult> ReplaceRolePermissionsAsync(Guid roleId, RolePermissions permissions, CancellationToken cancellationToken)

Parameters

roleId Guid

The role.

permissions RolePermissions

What it is to grant from now on, which drops any stored entry that grants nothing in this build.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<GrantWriteResult>

Written, UnknownRole, or LastRoot where the list would leave the last role giving the root over the deployment with neither the name nor a pattern reaching it.