Method RemoveGroupMemberAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
RemoveGroupMemberAsync(Guid, UserId, CancellationToken)
Ends a user's membership of a group.
Task<GrantWriteResult> RemoveGroupMemberAsync(Guid groupId, UserId user, CancellationToken cancellationToken)
Parameters
groupIdGuidThe group.
userUserIdThe user leaving it.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<GrantWriteResult>
Written, or Unchanged when they were not a member; or LastRoot where leaving would take the last root away.
Exceptions
- ArgumentException
Thrown when
usernames nobody.