Class DirectoryUser
A user as known by the external directory (e.g. Microsoft Entra ID).
public sealed record DirectoryUser : IEquatable<DirectoryUser>
- Inheritance
-
DirectoryUser
- Implements
- Inherited Members
Constructors
DirectoryUser(string, string, string, bool?)
A user as known by the external directory (e.g. Microsoft Entra ID).
public DirectoryUser(string DirectoryId, string Name, string EMail, bool? Enabled)
Parameters
DirectoryIdstringThe directory's id for the user (for Entra: the Graph object id).
NamestringThe directory display name.
EMailstringThe directory mail address, falling back to the user principal name when no mail is set.
Enabledbool?Whether the directory account is enabled; null when the directory did not report it.
Properties
DirectoryId
The directory's id for the user (for Entra: the Graph object id).
public string DirectoryId { get; init; }
Property Value
The directory mail address, falling back to the user principal name when no mail is set.
public string EMail { get; init; }
Property Value
Enabled
Whether the directory account is enabled; null when the directory did not report it.
public bool? Enabled { get; init; }
Property Value
- bool?
Name
The directory display name.
public string Name { get; init; }