rules/findings/entra/groups/eid-users-can-create-m365-groups.json

{
    "provider": "EntraID",
    "serviceType": "Groups",
    "serviceName": "Microsoft Entra ID",
    "displayName": "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.",
    "rationale": "Restricting Microsoft 365 group creation to administrators only ensures that creation of Microsoft 365 groups is controlled by the administrator. Appropriate groups should be created and managed by the administrator and group creation rights should not be delegated to any other user.",
    "impact": "Enabling this setting could create a number of requests that would need to be managed by an administrator.",
    "remediation": {
        "text": "
            ##### Remediate from Azure Portal
            1. From Azure Home select the Portal Menu
            2. Select Microsoft Entra ID
            3. Under Manage, select Groups
            4. Under Settings, select General
            5. Under Microsoft 365 Groups, set `Users can create Microsoft 365 groups in Azure portals, API or PowerShell` to `No`
            6. Click Save
        ",
        "code": {
            "powerShell": null,
            "iac": null,
            "terraform": null,
            "other": null
        }
    },
    "recommendation": null,
    "references": [
        "https://learn.microsoft.com/en-us/microsoft-365/solutions/manage-creation-ofgroups",
        "https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governancestrategy#gs-6-define-and-implement-identity-and-privileged-access-strategy",
        "https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governancestrategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-",
        "https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privilegedaccess#pa-1-separate-and-limit-highly-privilegedadministrative-users",
        "https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privilegedaccess#pa-3-manage-lifecycle-of-identities-and-entitlements"
    ],
    "compliance": [
        {
            "name": "CIS Microsoft Azure Foundations",
            "version": "5.0.0",
            "reference": "5.21",
            "profile": [
                "Level 2"
            ]
        }
    ],
    "level": "low",
    "tags": [],
    "rule": {
        "path": "aad_settings",
        "subPath": null,
        "selectCondition": {
             
        },
        "query": [
            {
                "filter": [
                    {
                        "conditions": [
                            [
                                "templateId",
                                "eq",
                                "62375ab9-6b52-47ed-826b-58e47e0e304b"
                            ],
                            [
                                "properties.EnableGroupCreation",
                                "eq",
                                "True"
                            ]
                        ],
                        "operator": "and"
                    }
                ]
            }
        ],
        "shouldExist": null,
        "returnObject": null,
        "removeIfNotExists": null
    },
    "output": {
        "html": {
            "data": {
                "properties": {
                    "displayName": "Display Name",
                    "properties.EnableGroupCreation": "Enable Group Creation"
                },
                "expandObject": null
            },
            "table": "asList",
            "decorate": [],
            "emphasis": [
                "Microsoft 365 group enabled"
            ],
            "actions": {
                "objectData": {
                    "properties": [],
                    "expandObject": null,
                    "limit": null
                },
                "showGoToButton": "True",
                "showModalButton": "True",
                "directLink": null
            }
        },
        "text": {
            "data": {
                "properties": {
                    "displayName": "Display Name",
                    "properties.EnableGroupCreation": "Enable Group Creation"
                },
                "expandObject": null
            },
            "status": {
                "keyName": [],
                "message": "Ensure that 'Users can create Microsoft 365 groups in Azure portals, API or PowerShell' is set to 'No'",
                "defaultMessage": "Ensure that 'Users can create Microsoft 365 groups in Azure portals, API or PowerShell' is set to 'No'"
            },
            "properties": {
                "resourceName": "displayName",
                "resourceId": "id",
                "resourceType": "EntraSettings"
            },
            "onlyStatus": false
        }
    },
    "idSuffix": "eid_restrict_m365_group_creation_admins",
    "notes": [],
    "categories": [],
    "immutable_properties": [
        "id",
        "displayName"
    ],
    "id": "entraid_groups_003"
}