共用方式為


User Class

Definition

Active Directory user information.

public class User : Microsoft.Azure.Graph.RBAC.Models.DirectoryObject
type User = class
    inherit DirectoryObject
Public Class User
Inherits DirectoryObject
Inheritance

Constructors

User()

Initializes a new instance of the User class.

User(IDictionary<String,Object>, String, Nullable<DateTime>, String, String, String, String, String, Nullable<Boolean>, String, String, String, String, IList<SignInName>)

Initializes a new instance of the User class.

Properties

AccountEnabled

Gets or sets whether the account is enabled.

AdditionalProperties

Gets or sets unmatched properties from the message are deserialized this collection

(Inherited from DirectoryObject)
DeletionTimestamp

Gets the time at which the directory object was deleted.

(Inherited from DirectoryObject)
DisplayName

Gets or sets the display name of the user.

GivenName

Gets or sets the given name for the user.

ImmutableId

Gets or sets this must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.

Mail

Gets or sets the primary email address of the user.

MailNickname

Gets or sets the mail alias for the user.

ObjectId

Gets the object ID.

(Inherited from DirectoryObject)
SignInNames

Gets or sets the sign-in names of the user.

Surname

Gets or sets the user's surname (family name or last name).

UsageLocation

Gets or sets a two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".

UserPrincipalName

Gets or sets the principal name of the user.

UserType

Gets or sets a string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Possible values include: 'Member', 'Guest'

Applies to