Table of Contents

Enum GrantWriteOutcome

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

What a write to a role, a group, or an assignment did, or why it did nothing.

public enum GrantWriteOutcome

Fields

AlreadyAssigned = 7

The same role is already given to the same principal at the same scope.

LastRoot = 10

The write would leave nobody holding mailfathom.admin.roles.write over the deployment, which nobody could then administer without the database.

NameTaken = 1

Another role, or another group, already carries the name.

OutsideGroupOrganization = 9

The user belongs to a different organization from the group, which holds only its own organization's members.

StillAssigned = 8

The role or the group is still assigned, so deleting it was refused rather than revoking every grant it carries.

Unchanged = 11

A membership write asked for what already held — the user was already a member, or was never one — so no row moved and nobody's grant changed.

It is answered as a success, because the state the caller asked for is the state there is, and it is told apart from Written so that no record says a membership changed when none did.

UnknownAssignment = 6

No assignment carries the identifier the write named.

UnknownGroup = 3

No group carries the identifier the write named.

UnknownOrganization = 5

No organization carries the identifier the write named, as a group's organization or a scope.

UnknownRole = 2

No role carries the identifier the write named.

UnknownUser = 4

No user carries the identifier the write named, as a member, a principal, or a scope.

Written = 0

The write was performed, or what it asked for already held.