Control: Ensure that 'Users can create Microsoft 365 groups in Azure portals, API or PowerShell' is set to 'No'
Description
Restrict Microsoft 365 group creation to administrators only.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.ad_m365_group_creation_disabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.ad_m365_group_creation_disabled --shareSQL
This control uses a named query:
with distinct_tenant as ( select distinct tenant_id, display_name, subscription_id, _ctx from azure_tenant)select id as resource, case when not (value)::bool then 'ok' else 'alarm' end as status, case when not (value)::bool then t.display_name || ' Microsoft 365 group creation is disabled.' else t.display_name || ' Microsoft 365 group creation is enabled.' end as reason, t.tenant_id from distinct_tenant as t, azuread_directory_settingwhere name = 'EnableGroupCreation';