Table: azuread_admin_consent_request_policy - Query Azure Active Directory Admin Consent Request Policies using SQL
An Azure Active Directory Admin Consent Request Policy is a feature within Microsoft Azure that controls the workflow of admin consent requests. It provides a centralized way to manage and review admin consent requests for applications requiring access to data they do not have permissions for. Azure AD admin consent request policy helps you stay informed about the access requests and take appropriate actions when predefined conditions are met.
Table Usage Guide
The azuread_admin_consent_request_policy
table provides insights into admin consent request policies within Azure Active Directory. As a security engineer, explore policy-specific details through this table, including policy settings, approval steps, and associated metadata. Utilize it to uncover information about policies, such as those with specific approval steps, the workflow of admin consent requests, and the verification of policy settings.
Examples
Basic info
Explore which Azure Active Directory admin consent request policies are enabled and their respective versions. This is useful for assessing the current status and versioning of your policies.
select title, is_enabled, versionfrom azuread_admin_consent_request_policy;
select title, is_enabled, versionfrom azuread_admin_consent_request_policy;
Check admin consent workflow is enabled
Determine if the admin consent workflow is active in Azure Active Directory, which is essential for enhancing security by ensuring that admins explicitly approve access requests to specific resources.
select title, is_enabled, versionfrom azuread_admin_consent_request_policywhere is_enabled;
select title, is_enabled, versionfrom azuread_admin_consent_request_policywhere is_enabled;
List users who can review new admin consent requests
Determine the users who have the authority to review new administrative consent requests. This is useful for managing permissions and ensuring only appropriate personnel are able to handle these requests.
select p.title, p.is_enabled, u.display_name as user_display_name, u.user_principal_namefrom azuread_admin_consent_request_policy as p, jsonb_array_elements(reviewers) as r left join azuread_user as u on split_part(r ->> 'query', '/', 4) = u.idwhere is_enabled;
Error: SQLite does not support splitor string_to_array functions.
Control examples
- CIS v1.4.0 > 2 Application Permissions > 2.7 Ensure the admin consent workflow is enabled
- CIS v1.5.0 > 2 Application Permissions > 2.7 Ensure the admin consent workflow is enabled
- CIS v2.0.0 > 2 Application Permissions > 2.1 Ensure the admin consent workflow is enabled
- CIS v3.0.0 > 5 Microsoft Entra admin center > 5.1 Identity > 5.1.5 Applications > 5.1.5.3 Ensure the admin consent workflow is enabled
Schema for azuread_admin_consent_request_policy
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
is_enabled | boolean | Specifies whether the admin consent request feature is enabled or disabled. | |
notify_reviewers | boolean | Specifies whether reviewers will receive notifications. | |
reminders_enabled | boolean | Specifies whether reviewers will receive reminder emails. | |
request_duration_in_days | bigint | Specifies the duration the request is active before it automatically expires if no decision is applied. | |
reviewers | jsonb | The list of reviewers for the admin consent. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
tenant_id | text | =, !=, ~~, ~~*, !~~, !~~* | The Azure Tenant ID where the resource is located. |
title | text | Title of the resource. | |
version | bigint | Specifies the version of this policy. When the policy is updated, this version is updated. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- azuread
You can pass the configuration to the command with the --config
argument:
steampipe_export_azuread --config '<your_config>' azuread_admin_consent_request_policy