Data source to retrieve a specific Auth0 role by role_id
or name
.
# An Auth0 Role loaded using its name.
data "auth0_role" "some-role-by-name" {
name = "my-role"
}
# An Auth0 Role loaded using its ID.
data "auth0_role" "some-role-by-id" {
role_id = "abcdefghkijklmnopqrstuvwxyz0123456789"
}
name
(String) The name of the role. If not provided, role_id
must be set.role_id
(String) The ID of the role. If not provided, name
must be set.description
(String) The description of the role.id
(String) The ID of this resource.permissions
(Set of Object) Configuration settings for permissions (scopes) attached to the role. (see below for nested schema)users
(Set of String) List of user IDs assigned to this role. Retrieves a maximum of 1000 user IDs.permissions
Read-Only:
description
(String)name
(String)resource_server_identifier
(String)resource_server_name
(String)