Table of Contents

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

groupId Guid

The group.

user UserId

The user leaving it.

cancellationToken CancellationToken

Cancels 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 user names nobody.