» Data Source: azuread_user

Gets information about an Azure Active Directory user.

» Example Usage

data "azuread_user" "test_user" {
  user_principal_name = "john@hashicorp.com"
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • id - The Object ID of the Azure AD User.
  • user_principal_name - The User Principal Name of the Azure AD User.
  • account_enabled - True if the account is enabled; otherwise False.
  • display_name - The Display Name of the Azure AD User.
  • mail - The primary email address of the Azure AD User.
  • mail_nickname - The email alias of the Azure AD User.