Method ReadUserPlacementAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
ReadUserPlacementAsync(UserId, CancellationToken)
Reads which organization one user belongs to.
Task<UserPlacement?> ReadUserPlacementAsync(UserId user, CancellationToken cancellationToken)
Parameters
userUserIdThe user.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<UserPlacement>
The user's placement, or null where nobody carries the identifier.
Exceptions
- ArgumentException
Thrown when
usernames nobody.