Resource: azuread_directory_role_templates

Use this data source to access information about directory role templates within Azure Active Directory.

API Permissions

The following API permissions are required in order to use this resource.

When authenticated with a service principal, this resource requires one of the following application roles: RoleManagement.Read.Directory or Directory.Read.All

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

Example Usage

data "azuread_directory_role_templates" "current" {}

output "roles" {
  value = data.azuread_directory_role_templates.current.object_ids
}

Argument Reference

This data source does not have any arguments.

Attributes Reference

The following attributes are exported:


role_template object exports the following: