Restrict device join to selected users/groups or none
MT.1070MediumEntra IDDevice identity
Part of Maester · Entra ID · Device identity · All checks
Invoke-Maester -TestId MT.1070Overview
Section titled “Overview”Description
Section titled “Description”Verifies that device join to Entra ID is restricted to selected users/groups or disabled entirely.
Why This Matters
Section titled “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
Section titled “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 permissionsConnect-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 policyUpdate-MgPolicyDeviceRegistrationPolicy -BodyParameter $paramsRelated links
Section titled “Related links”Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | MT.1070 |
| Severity | Medium |
| Suite | Maester |
| Product | Entra ID |
| Feature | Device identity |
| Area | Devices and endpoints |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1098.005 Device Registration |
| Supports controls | nist-800-53-r5:AC-6, nist-800-53-r5:IA-3 |
| PowerShell test | Test-MtEntraDeviceJoinRestricted |
| Services | Graph |
Source
Section titled “Source”- Test:
tests/maester/entra/Test.MT.1070.ps1 - Documentation:
tests/maester/entra/Test.MT.1070.md