MT.1070 - Restrict device join to selected users/groups or none.
Overviewβ
Descriptionβ
Verifies that device join to Entra ID is restricted to selected users/groups or disabled entirely.
Why This Mattersβ
Device join should be restricted because:
- Unauthorized Access: Unrestricted device join allows any user to connect personal or unmanaged devices to corporate resources.
- Data Leakage: Uncontrolled devices may not have proper security controls, increasing risk of data exposure.
- Compliance: Many regulatory frameworks require controlled device access to organizational resources.
- Shadow IT: Unmanaged devices bypass security policies and monitoring capabilities.
- Attack Surface: Each joined device represents a potential entry point for attackers.
Restricting device join to selected users/groups ensures only authorized devices with proper security controls can access organizational resources.
Remediation actionβ
This setting can be changed via device settings in the Microsoft Entra or Azure portal or via Microsoft Graph API / Graph PowerShell Module.
Admin Portal:
- Go to Entra Admin Center
- Navigate to Devices β Device settings
- Set Users may join devices to Microsoft Entra to Selected or None
- If Selected, configure the specific users/groups that can join devices
- If None, disable device join entirely
- Click Save
Use the following PowerShell commands to restrict device join:
# Connect to Microsoft Graph with appropriate permissions
Connect-MgGraph -Scopes "Policy.ReadWrite.DeviceConfiguration"
# Option 1: Disable device join completely
$params = @{
azureADJoin = @{
allowedToJoin = @{
"@odata.type" = "#microsoft.graph.noDeviceRegistrationMembership"
}
}
}
# Option 2: Restrict to selected users/groups
$params = @{
azureADJoin = @{
allowedToJoin = @{
"@odata.type" = "#microsoft.graph.enumeratedDeviceRegistrationMembership"
groups = @("group-id-1", "group-id-2")
}
}
}
# Apply the policy
Update-MgPolicyDeviceRegistrationPolicy -BodyParameter $params
Related linksβ
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | MT.1070 |
| Severity | Medium |
| Suite | Maester |
| Category | Entra |
| PowerShell test | Test-MtEntraDeviceJoinRestricted |
| Tags | Device, Entra, MT.1070 |
Sourceβ
- Pester test:
tests/Maester/Entra/Test-MtEntraDeviceRegistrationPolicy.Tests.ps1 - PowerShell source:
powershell/public/maester/entra/Test-MtEntraDeviceJoinRestricted.ps1