Data Source: azuread_users

Gets basic information for multiple Azure Active Directory users.

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.ReadBasic.All, User.Read.All or Directory.Read.All

When authenticated with a user principal, this data source does not require any additional roles.

Example Usage

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

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:


user object exports the following: