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 = 7The same role is already given to the same principal at the same scope.
LastRoot = 10The write would leave nobody holding
mailfathom.admin.roles.writeover the deployment, which nobody could then administer without the database.NameTaken = 1Another role, or another group, already carries the name.
OutsideGroupOrganization = 9The user belongs to a different organization from the group, which holds only its own organization's members.
StillAssigned = 8The role or the group is still assigned, so deleting it was refused rather than revoking every grant it carries.
Unchanged = 11A 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 = 6No assignment carries the identifier the write named.
UnknownGroup = 3No group carries the identifier the write named.
UnknownOrganization = 5No organization carries the identifier the write named, as a group's organization or a scope.
UnknownRole = 2No role carries the identifier the write named.
UnknownUser = 4No user carries the identifier the write named, as a member, a principal, or a scope.
Written = 0The write was performed, or what it asked for already held.