Skip to main content

vw_role_definitions

Creates, updates, deletes, gets or lists a vw_role_definitions resource.

Overview

Namevw_role_definitions
TypeView
Idazure.authorization.vw_role_definitions

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
type as type,
JSON_EXTRACT(properties, '$.roleName') as "role_name",
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.type') as "type",
JSON_EXTRACT(properties, '$.permissions') as "permissions",
JSON_EXTRACT(properties, '$.assignableScopes') as "assignable_scopes",
JSON_EXTRACT(properties, '$.createdOn') as "created_on",
JSON_EXTRACT(properties, '$.updatedOn') as "updated_on",
JSON_EXTRACT(properties, '$.createdBy') as "created_by",
JSON_EXTRACT(properties, '$.updatedBy') as "updated_by",
scope,
roleDefinitionId
FROM azure.authorization.role_definitions
WHERE scope = 'replace-me';