» Data Source: azuread_user

Gets Object IDs or UPNs for multiple Azure Active Directory users.

» Example Usage

data "azuread_users" "users" {
  user_principal_names = ["kat@hashicorp.com", "byte@hashicorp.com"]
}

» Argument Reference

The following arguments are supported:

  • ignore_missing - (Optional) Ignore missing users and return users that were found. The data source will still fail if no users are found. Defaults to false.

» Attributes Reference

The following attributes are exported:

  • object_ids - The Object IDs of the Azure AD Users.
  • user_principal_names - The User Principal Names of the Azure AD Users.
  • mail_nicknames - The email aliases of the Azure AD Users.
  • users - An Array of Azure AD Users. Each user object consists of the fields documented below.

The user object consists of: