Table of Contents

Class DirectoryUser

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

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

DirectoryId string

The directory's id for the user (for Entra: the Graph object id).

Name string

The directory display name.

EMail string

The directory mail address, falling back to the user principal name when no mail is set.

Enabled bool?

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

string

EMail

The directory mail address, falling back to the user principal name when no mail is set.

public string EMail { get; init; }

Property Value

string

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; }

Property Value

string