Class DirectoryVerificationResult
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
Result of verifying a local user against the external directory.
public sealed record DirectoryVerificationResult : IEquatable<DirectoryVerificationResult>
- Inheritance
-
DirectoryVerificationResult
- Implements
- Inherited Members
Constructors
DirectoryVerificationResult(DirectoryUserStatus, string, string)
Result of verifying a local user against the external directory.
public DirectoryVerificationResult(DirectoryUserStatus Status, string DirectoryId = null, string DirectoryName = null)
Parameters
StatusDirectoryUserStatusThe verification outcome.
DirectoryIdstringThe directory id the user resolved to, when found. May differ from the id stored on the local user (e.g. resolved via email fallback for a user created before directory ids were captured) — callers should persist it so the user is linked for subsequent operations.
DirectoryNamestringThe display name the directory holds for the user, when found. Compared with the local name to offer moving a name in either direction; see DirectoryNames.
Properties
DirectoryId
The directory id the user resolved to, when found. May differ from the id stored on the local user (e.g. resolved via email fallback for a user created before directory ids were captured) — callers should persist it so the user is linked for subsequent operations.
public string DirectoryId { get; init; }
Property Value
DirectoryName
The display name the directory holds for the user, when found. Compared with the local name to offer moving a name in either direction; see DirectoryNames.
public string DirectoryName { get; init; }
Property Value
Status
The verification outcome.
public DirectoryUserStatus Status { get; init; }