azuread.getUser
Explore with Pulumi AI
Gets information about an Azure Active Directory user.
API Permissions
The following API permissions are required in order to use this data source.
When authenticated with a service principal, this data source requires one of the following application roles: User.Read.All or Directory.Read.All
When authenticated with a user principal, this data source does not require any additional roles.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const example = azuread.getUser({
    userPrincipalName: "user@example.com",
});
import pulumi
import pulumi_azuread as azuread
example = azuread.get_user(user_principal_name="user@example.com")
package main
import (
	"github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azuread.LookupUser(ctx, &azuread.LookupUserArgs{
			UserPrincipalName: pulumi.StringRef("user@example.com"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() => 
{
    var example = AzureAD.GetUser.Invoke(new()
    {
        UserPrincipalName = "user@example.com",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = AzureadFunctions.getUser(GetUserArgs.builder()
            .userPrincipalName("user@example.com")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: azuread:getUser
      arguments:
        userPrincipalName: user@example.com
Using getUser
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>def get_user(employee_id: Optional[str] = None,
             mail: Optional[str] = None,
             mail_nickname: Optional[str] = None,
             object_id: Optional[str] = None,
             user_principal_name: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(employee_id: Optional[pulumi.Input[str]] = None,
             mail: Optional[pulumi.Input[str]] = None,
             mail_nickname: Optional[pulumi.Input[str]] = None,
             object_id: Optional[pulumi.Input[str]] = None,
             user_principal_name: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput> Note: This function is named LookupUser in the Go SDK.
public static class GetUser 
{
    public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
    public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
  function: azuread:index/getUser:getUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- EmployeeId string
- The employee identifier assigned to the user by the organisation.
- Mail string
- The SMTP address for the user.
- MailNickname string
- The email alias of the user.
- ObjectId string
- The object ID of the user.
- UserPrincipal stringName 
- The user principal name (UPN) of the user. - One of - user_principal_name,- object_id,- mail,- mail_nicknameor- employee_idmust be specified.
- EmployeeId string
- The employee identifier assigned to the user by the organisation.
- Mail string
- The SMTP address for the user.
- MailNickname string
- The email alias of the user.
- ObjectId string
- The object ID of the user.
- UserPrincipal stringName 
- The user principal name (UPN) of the user. - One of - user_principal_name,- object_id,- mail,- mail_nicknameor- employee_idmust be specified.
- employeeId String
- The employee identifier assigned to the user by the organisation.
- mail String
- The SMTP address for the user.
- mailNickname String
- The email alias of the user.
- objectId String
- The object ID of the user.
- userPrincipal StringName 
- The user principal name (UPN) of the user. - One of - user_principal_name,- object_id,- mail,- mail_nicknameor- employee_idmust be specified.
- employeeId string
- The employee identifier assigned to the user by the organisation.
- mail string
- The SMTP address for the user.
- mailNickname string
- The email alias of the user.
- objectId string
- The object ID of the user.
- userPrincipal stringName 
- The user principal name (UPN) of the user. - One of - user_principal_name,- object_id,- mail,- mail_nicknameor- employee_idmust be specified.
- employee_id str
- The employee identifier assigned to the user by the organisation.
- mail str
- The SMTP address for the user.
- mail_nickname str
- The email alias of the user.
- object_id str
- The object ID of the user.
- user_principal_ strname 
- The user principal name (UPN) of the user. - One of - user_principal_name,- object_id,- mail,- mail_nicknameor- employee_idmust be specified.
- employeeId String
- The employee identifier assigned to the user by the organisation.
- mail String
- The SMTP address for the user.
- mailNickname String
- The email alias of the user.
- objectId String
- The object ID of the user.
- userPrincipal StringName 
- The user principal name (UPN) of the user. - One of - user_principal_name,- object_id,- mail,- mail_nicknameor- employee_idmust be specified.
getUser Result
The following output properties are available:
- AccountEnabled bool
- Whether or not the account is enabled.
- AgeGroup string
- The age group of the user. Supported values are Adult,NotAdultandMinor.
- BusinessPhones List<string>
- A list of telephone numbers for the user.
- City string
- The city in which the user is located.
- CompanyName string
- The company name which the user is associated. This property can be useful for describing the company that an external user comes from.
- ConsentProvided stringFor Minor 
- Whether consent has been obtained for minors. Supported values are Granted,DeniedandNotRequired.
- CostCenter string
- The cost center associated with the user.
- Country string
- The country/region in which the user is located, e.g. USorUK.
- CreationType string
- Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified).
- Department string
- The name for the department in which the user works.
- DisplayName string
- The display name of the user.
- Division string
- The name of the division in which the user works.
- EmployeeHire stringDate 
- The hire date of the user, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
- EmployeeId string
- The employee identifier assigned to the user by the organisation.
- EmployeeType string
- Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor.
- ExternalUser stringState 
- For an external user invited to the tenant, this property represents the invited user's invitation status. Possible values are PendingAcceptanceorAccepted.
- FaxNumber string
- The fax number of the user.
- GivenName string
- The given name (first name) of the user.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImAddresses List<string>
- A list of instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.
- JobTitle string
- The user’s job title.
- Mail string
- The SMTP address for the user.
- MailNickname string
- The email alias of the user.
- ManagerId string
- The object ID of the user's manager.
- MobilePhone string
- The primary cellular telephone number for the user.
- ObjectId string
- The object ID of the user.
- OfficeLocation string
- The office location in the user's place of business.
- OnpremisesDistinguished stringName 
- The on-premises distinguished name (DN) of the user, synchronised from the on-premises directory when Azure AD Connect is used.
- OnpremisesDomain stringName 
- The on-premises FQDN, also called dnsDomainName, synchronised from the on-premises directory when Azure AD Connect is used.
- OnpremisesImmutable stringId 
- The value used to associate an on-premise Active Directory user account with their Azure AD user object.
- OnpremisesSam stringAccount Name 
- The on-premise SAM account name of the user.
- OnpremisesSecurity stringIdentifier 
- The on-premises security identifier (SID), synchronised from the on-premises directory when Azure AD Connect is used.
- OnpremisesSync boolEnabled 
- Whether this user is synchronised from an on-premises directory (true), no longer synchronised (false), or has never been synchronised (null).
- OnpremisesUser stringPrincipal Name 
- The on-premise user principal name of the user.
- OtherMails List<string>
- A list of additional email addresses for the user.
- PostalCode string
- 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.
- PreferredLanguage string
- The user's preferred language, in ISO 639-1 notation.
- ProxyAddresses List<string>
- List of email addresses for the user that direct to the same mailbox.
- ShowIn boolAddress List 
- Whether or not the Outlook global address list should include this user.
- State string
- The state or province in the user's address.
- StreetAddress string
- The street address of the user's place of business.
- Surname string
- The user's surname (family name or last name).
- UsageLocation string
- The usage location of the user.
- UserPrincipal stringName 
- The user principal name (UPN) of the user.
- UserType string
- The user type in the directory. Possible values are GuestorMember.
- AccountEnabled bool
- Whether or not the account is enabled.
- AgeGroup string
- The age group of the user. Supported values are Adult,NotAdultandMinor.
- BusinessPhones []string
- A list of telephone numbers for the user.
- City string
- The city in which the user is located.
- CompanyName string
- The company name which the user is associated. This property can be useful for describing the company that an external user comes from.
- ConsentProvided stringFor Minor 
- Whether consent has been obtained for minors. Supported values are Granted,DeniedandNotRequired.
- CostCenter string
- The cost center associated with the user.
- Country string
- The country/region in which the user is located, e.g. USorUK.
- CreationType string
- Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified).
- Department string
- The name for the department in which the user works.
- DisplayName string
- The display name of the user.
- Division string
- The name of the division in which the user works.
- EmployeeHire stringDate 
- The hire date of the user, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
- EmployeeId string
- The employee identifier assigned to the user by the organisation.
- EmployeeType string
- Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor.
- ExternalUser stringState 
- For an external user invited to the tenant, this property represents the invited user's invitation status. Possible values are PendingAcceptanceorAccepted.
- FaxNumber string
- The fax number of the user.
- GivenName string
- The given name (first name) of the user.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImAddresses []string
- A list of instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.
- JobTitle string
- The user’s job title.
- Mail string
- The SMTP address for the user.
- MailNickname string
- The email alias of the user.
- ManagerId string
- The object ID of the user's manager.
- MobilePhone string
- The primary cellular telephone number for the user.
- ObjectId string
- The object ID of the user.
- OfficeLocation string
- The office location in the user's place of business.
- OnpremisesDistinguished stringName 
- The on-premises distinguished name (DN) of the user, synchronised from the on-premises directory when Azure AD Connect is used.
- OnpremisesDomain stringName 
- The on-premises FQDN, also called dnsDomainName, synchronised from the on-premises directory when Azure AD Connect is used.
- OnpremisesImmutable stringId 
- The value used to associate an on-premise Active Directory user account with their Azure AD user object.
- OnpremisesSam stringAccount Name 
- The on-premise SAM account name of the user.
- OnpremisesSecurity stringIdentifier 
- The on-premises security identifier (SID), synchronised from the on-premises directory when Azure AD Connect is used.
- OnpremisesSync boolEnabled 
- Whether this user is synchronised from an on-premises directory (true), no longer synchronised (false), or has never been synchronised (null).
- OnpremisesUser stringPrincipal Name 
- The on-premise user principal name of the user.
- OtherMails []string
- A list of additional email addresses for the user.
- PostalCode string
- 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.
- PreferredLanguage string
- The user's preferred language, in ISO 639-1 notation.
- ProxyAddresses []string
- List of email addresses for the user that direct to the same mailbox.
- ShowIn boolAddress List 
- Whether or not the Outlook global address list should include this user.
- State string
- The state or province in the user's address.
- StreetAddress string
- The street address of the user's place of business.
- Surname string
- The user's surname (family name or last name).
- UsageLocation string
- The usage location of the user.
- UserPrincipal stringName 
- The user principal name (UPN) of the user.
- UserType string
- The user type in the directory. Possible values are GuestorMember.
- accountEnabled Boolean
- Whether or not the account is enabled.
- ageGroup String
- The age group of the user. Supported values are Adult,NotAdultandMinor.
- businessPhones List<String>
- A list of telephone numbers for the user.
- city String
- The city in which the user is located.
- companyName String
- The company name which the user is associated. This property can be useful for describing the company that an external user comes from.
- consentProvided StringFor Minor 
- Whether consent has been obtained for minors. Supported values are Granted,DeniedandNotRequired.
- costCenter String
- The cost center associated with the user.
- country String
- The country/region in which the user is located, e.g. USorUK.
- creationType String
- Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified).
- department String
- The name for the department in which the user works.
- displayName String
- The display name of the user.
- division String
- The name of the division in which the user works.
- employeeHire StringDate 
- The hire date of the user, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
- employeeId String
- The employee identifier assigned to the user by the organisation.
- employeeType String
- Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor.
- externalUser StringState 
- For an external user invited to the tenant, this property represents the invited user's invitation status. Possible values are PendingAcceptanceorAccepted.
- faxNumber String
- The fax number of the user.
- givenName String
- The given name (first name) of the user.
- id String
- The provider-assigned unique ID for this managed resource.
- imAddresses List<String>
- A list of instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.
- jobTitle String
- The user’s job title.
- mail String
- The SMTP address for the user.
- mailNickname String
- The email alias of the user.
- managerId String
- The object ID of the user's manager.
- mobilePhone String
- The primary cellular telephone number for the user.
- objectId String
- The object ID of the user.
- officeLocation String
- The office location in the user's place of business.
- onpremisesDistinguished StringName 
- The on-premises distinguished name (DN) of the user, synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesDomain StringName 
- The on-premises FQDN, also called dnsDomainName, synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesImmutable StringId 
- The value used to associate an on-premise Active Directory user account with their Azure AD user object.
- onpremisesSam StringAccount Name 
- The on-premise SAM account name of the user.
- onpremisesSecurity StringIdentifier 
- The on-premises security identifier (SID), synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesSync BooleanEnabled 
- Whether this user is synchronised from an on-premises directory (true), no longer synchronised (false), or has never been synchronised (null).
- onpremisesUser StringPrincipal Name 
- The on-premise user principal name of the user.
- otherMails List<String>
- A list of additional email addresses for the user.
- postalCode String
- 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.
- preferredLanguage String
- The user's preferred language, in ISO 639-1 notation.
- proxyAddresses List<String>
- List of email addresses for the user that direct to the same mailbox.
- showIn BooleanAddress List 
- Whether or not the Outlook global address list should include this user.
- state String
- The state or province in the user's address.
- streetAddress String
- The street address of the user's place of business.
- surname String
- The user's surname (family name or last name).
- usageLocation String
- The usage location of the user.
- userPrincipal StringName 
- The user principal name (UPN) of the user.
- userType String
- The user type in the directory. Possible values are GuestorMember.
- accountEnabled boolean
- Whether or not the account is enabled.
- ageGroup string
- The age group of the user. Supported values are Adult,NotAdultandMinor.
- businessPhones string[]
- A list of telephone numbers for the user.
- city string
- The city in which the user is located.
- companyName string
- The company name which the user is associated. This property can be useful for describing the company that an external user comes from.
- consentProvided stringFor Minor 
- Whether consent has been obtained for minors. Supported values are Granted,DeniedandNotRequired.
- costCenter string
- The cost center associated with the user.
- country string
- The country/region in which the user is located, e.g. USorUK.
- creationType string
- Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified).
- department string
- The name for the department in which the user works.
- displayName string
- The display name of the user.
- division string
- The name of the division in which the user works.
- employeeHire stringDate 
- The hire date of the user, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
- employeeId string
- The employee identifier assigned to the user by the organisation.
- employeeType string
- Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor.
- externalUser stringState 
- For an external user invited to the tenant, this property represents the invited user's invitation status. Possible values are PendingAcceptanceorAccepted.
- faxNumber string
- The fax number of the user.
- givenName string
- The given name (first name) of the user.
- id string
- The provider-assigned unique ID for this managed resource.
- imAddresses string[]
- A list of instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.
- jobTitle string
- The user’s job title.
- mail string
- The SMTP address for the user.
- mailNickname string
- The email alias of the user.
- managerId string
- The object ID of the user's manager.
- mobilePhone string
- The primary cellular telephone number for the user.
- objectId string
- The object ID of the user.
- officeLocation string
- The office location in the user's place of business.
- onpremisesDistinguished stringName 
- The on-premises distinguished name (DN) of the user, synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesDomain stringName 
- The on-premises FQDN, also called dnsDomainName, synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesImmutable stringId 
- The value used to associate an on-premise Active Directory user account with their Azure AD user object.
- onpremisesSam stringAccount Name 
- The on-premise SAM account name of the user.
- onpremisesSecurity stringIdentifier 
- The on-premises security identifier (SID), synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesSync booleanEnabled 
- Whether this user is synchronised from an on-premises directory (true), no longer synchronised (false), or has never been synchronised (null).
- onpremisesUser stringPrincipal Name 
- The on-premise user principal name of the user.
- otherMails string[]
- A list of additional email addresses for the user.
- postalCode string
- 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.
- preferredLanguage string
- The user's preferred language, in ISO 639-1 notation.
- proxyAddresses string[]
- List of email addresses for the user that direct to the same mailbox.
- showIn booleanAddress List 
- Whether or not the Outlook global address list should include this user.
- state string
- The state or province in the user's address.
- streetAddress string
- The street address of the user's place of business.
- surname string
- The user's surname (family name or last name).
- usageLocation string
- The usage location of the user.
- userPrincipal stringName 
- The user principal name (UPN) of the user.
- userType string
- The user type in the directory. Possible values are GuestorMember.
- account_enabled bool
- Whether or not the account is enabled.
- age_group str
- The age group of the user. Supported values are Adult,NotAdultandMinor.
- business_phones Sequence[str]
- A list of telephone numbers for the user.
- city str
- The city in which the user is located.
- company_name str
- The company name which the user is associated. This property can be useful for describing the company that an external user comes from.
- consent_provided_ strfor_ minor 
- Whether consent has been obtained for minors. Supported values are Granted,DeniedandNotRequired.
- cost_center str
- The cost center associated with the user.
- country str
- The country/region in which the user is located, e.g. USorUK.
- creation_type str
- Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified).
- department str
- The name for the department in which the user works.
- display_name str
- The display name of the user.
- division str
- The name of the division in which the user works.
- employee_hire_ strdate 
- The hire date of the user, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
- employee_id str
- The employee identifier assigned to the user by the organisation.
- employee_type str
- Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor.
- external_user_ strstate 
- For an external user invited to the tenant, this property represents the invited user's invitation status. Possible values are PendingAcceptanceorAccepted.
- fax_number str
- The fax number of the user.
- given_name str
- The given name (first name) of the user.
- id str
- The provider-assigned unique ID for this managed resource.
- im_addresses Sequence[str]
- A list of instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.
- job_title str
- The user’s job title.
- mail str
- The SMTP address for the user.
- mail_nickname str
- The email alias of the user.
- manager_id str
- The object ID of the user's manager.
- mobile_phone str
- The primary cellular telephone number for the user.
- object_id str
- The object ID of the user.
- office_location str
- The office location in the user's place of business.
- onpremises_distinguished_ strname 
- The on-premises distinguished name (DN) of the user, synchronised from the on-premises directory when Azure AD Connect is used.
- onpremises_domain_ strname 
- The on-premises FQDN, also called dnsDomainName, synchronised from the on-premises directory when Azure AD Connect is used.
- onpremises_immutable_ strid 
- The value used to associate an on-premise Active Directory user account with their Azure AD user object.
- onpremises_sam_ straccount_ name 
- The on-premise SAM account name of the user.
- onpremises_security_ stridentifier 
- The on-premises security identifier (SID), synchronised from the on-premises directory when Azure AD Connect is used.
- onpremises_sync_ boolenabled 
- Whether this user is synchronised from an on-premises directory (true), no longer synchronised (false), or has never been synchronised (null).
- onpremises_user_ strprincipal_ name 
- The on-premise user principal name of the user.
- other_mails Sequence[str]
- A list of additional email addresses for the user.
- postal_code str
- 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.
- preferred_language str
- The user's preferred language, in ISO 639-1 notation.
- proxy_addresses Sequence[str]
- List of email addresses for the user that direct to the same mailbox.
- show_in_ booladdress_ list 
- Whether or not the Outlook global address list should include this user.
- state str
- The state or province in the user's address.
- street_address str
- The street address of the user's place of business.
- surname str
- The user's surname (family name or last name).
- usage_location str
- The usage location of the user.
- user_principal_ strname 
- The user principal name (UPN) of the user.
- user_type str
- The user type in the directory. Possible values are GuestorMember.
- accountEnabled Boolean
- Whether or not the account is enabled.
- ageGroup String
- The age group of the user. Supported values are Adult,NotAdultandMinor.
- businessPhones List<String>
- A list of telephone numbers for the user.
- city String
- The city in which the user is located.
- companyName String
- The company name which the user is associated. This property can be useful for describing the company that an external user comes from.
- consentProvided StringFor Minor 
- Whether consent has been obtained for minors. Supported values are Granted,DeniedandNotRequired.
- costCenter String
- The cost center associated with the user.
- country String
- The country/region in which the user is located, e.g. USorUK.
- creationType String
- Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified).
- department String
- The name for the department in which the user works.
- displayName String
- The display name of the user.
- division String
- The name of the division in which the user works.
- employeeHire StringDate 
- The hire date of the user, formatted as an RFC3339 date string (e.g. 2018-01-01T01:02:03Z).
- employeeId String
- The employee identifier assigned to the user by the organisation.
- employeeType String
- Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor.
- externalUser StringState 
- For an external user invited to the tenant, this property represents the invited user's invitation status. Possible values are PendingAcceptanceorAccepted.
- faxNumber String
- The fax number of the user.
- givenName String
- The given name (first name) of the user.
- id String
- The provider-assigned unique ID for this managed resource.
- imAddresses List<String>
- A list of instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user.
- jobTitle String
- The user’s job title.
- mail String
- The SMTP address for the user.
- mailNickname String
- The email alias of the user.
- managerId String
- The object ID of the user's manager.
- mobilePhone String
- The primary cellular telephone number for the user.
- objectId String
- The object ID of the user.
- officeLocation String
- The office location in the user's place of business.
- onpremisesDistinguished StringName 
- The on-premises distinguished name (DN) of the user, synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesDomain StringName 
- The on-premises FQDN, also called dnsDomainName, synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesImmutable StringId 
- The value used to associate an on-premise Active Directory user account with their Azure AD user object.
- onpremisesSam StringAccount Name 
- The on-premise SAM account name of the user.
- onpremisesSecurity StringIdentifier 
- The on-premises security identifier (SID), synchronised from the on-premises directory when Azure AD Connect is used.
- onpremisesSync BooleanEnabled 
- Whether this user is synchronised from an on-premises directory (true), no longer synchronised (false), or has never been synchronised (null).
- onpremisesUser StringPrincipal Name 
- The on-premise user principal name of the user.
- otherMails List<String>
- A list of additional email addresses for the user.
- postalCode String
- 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.
- preferredLanguage String
- The user's preferred language, in ISO 639-1 notation.
- proxyAddresses List<String>
- List of email addresses for the user that direct to the same mailbox.
- showIn BooleanAddress List 
- Whether or not the Outlook global address list should include this user.
- state String
- The state or province in the user's address.
- streetAddress String
- The street address of the user's place of business.
- surname String
- The user's surname (family name or last name).
- usageLocation String
- The usage location of the user.
- userPrincipal StringName 
- The user principal name (UPN) of the user.
- userType String
- The user type in the directory. Possible values are GuestorMember.
Package Details
- Repository
- Azure Active Directory (Azure AD) pulumi/pulumi-azuread
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azureadTerraform Provider.