User Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Item in Value
public class User
type User = class
Public Class User
- Inheritance
-
User
Constructors
| Name | Description |
|---|---|
| User() | |
Properties
| Name | Description |
|---|---|
| AccountEnabled |
true if the account is enabled; otherwise, false. This property is required when a user is created. |
| BusinessPhones |
A list of business phone numbers for the user |
| City |
The city in which the user is located. |
| CompanyName |
The name of the company in which the user works. |
| Country |
The country/region in which the user is located; for example, "US" or "UK". |
| Department |
The name of the department in which the user works. |
| DisplayName |
The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial and last name. This property is required when a user is created and it cannot be cleared during updates. |
|
The SMTP/email address for the user, for example, "jeff@contoso.onmicrosoft.com". Read-Only. |
|
| GivenName |
The given name (first name) of the user. |
| JobTitle |
The user's job title. |
| MobilePhone |
The primary cellular telephone number for the user. |
| Nickname |
The mail alias for the user. This property must be specified when a user is created. |
| OfficeLocation |
The office location in the user's place of business. |
| PostalCode |
The postal code for the user's postal address. The postal code is specific to the user's country/region. In the United States of America, this attribute contains the ZIP code. |
| Surname |
The user's surname (family name or last name). |
| TelephoneNumber |
The primary cellular telephone number for the user. |
| UserId |
A unique identifier for the user object in the directory. |
| UserPrincipalNameUPN |
The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. |