azuread_account_provisioning_activity_report_reviewedazuread_admin_consent_workflow_enabledazuread_admin_user_mfa_enabledazuread_all_user_mfa_enabledazuread_audit_log_search_enabledazuread_authorization_policy_accessing_company_data_not_allowedazuread_global_admin_range_restrictedazuread_group_not_publicazuread_guest_user_infoazuread_legacy_authentication_disabledazuread_microsoft_azure_management_limited_to_administrative_rolesazuread_password_protection_enabledazuread_risky_sign_ins_reportazuread_security_default_disabledazuread_signin_frequency_policyazuread_signin_risk_policyazuread_third_party_application_not_allowedazuread_user_password_not_set_to_expireazuread_user_risk_policyazuread_user_sspr_enabledmicrosoft365_calendar_sharing_disabled
Query: azuread_authorization_policy_accessing_company_data_not_allowed
Usage
powerpipe query microsoft365_compliance.query.azuread_authorization_policy_accessing_company_data_not_allowed
Steampipe Tables
SQL
select tenant_id || '/' || id as resource, case when jsonb_array_length(default_user_role_permissions -> 'permissionGrantPoliciesAssigned') = 0 then 'ok' else 'alarm' end as status, case when jsonb_array_length(default_user_role_permissions -> 'permissionGrantPoliciesAssigned') = 0 then tenant_id || ' which is ' || lower(split_part(description, '.', 1)) || ' does not have Permission Grant Policies assigned.' else tenant_id || ' which is ' || lower(split_part(description, '.', 1)) || ' have Permission Grant Policies assigned.' end as reason , tenant_id as tenant_idfrom azuread_authorization_policy;
Controls
The query is being used by the following controls:
- 2.6 Ensure user consent to apps accessing company data on their behalf is not allowed
- 2.6 Ensure user consent to apps accessing company data on their behalf is not allowed
- 2.7 Ensure user consent to apps accessing company data on their behalf is not allowed
- 5.1.5.2 Ensure user consent to apps accessing company data on their behalf is not allowed