Skip to content
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Sponsor

Restrict device join to selected users/groups or none

MT.1070MediumEntra IDDevice identity

Part of Maester · Entra ID · Device identity · All checks

Run this check
Invoke-Maester -TestId MT.1070

Verifies that device join to Entra ID is restricted to selected users/groups or disabled entirely.

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.

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:

  1. Go to Entra Admin Center
  2. Navigate to Devices → Device settings
  3. 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
  4. 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
Every attribute of this check
FieldValue
Test IDMT.1070
SeverityMedium
SuiteMaester
ProductEntra ID
FeatureDevice identity
AreaDevices and endpoints
Resource typeTenant
User impactLow
Implementation costLow
MITRE ATT&CKT1098.005 Device Registration
Supports controlsnist-800-53-r5:AC-6, nist-800-53-r5:IA-3
PowerShell testTest-MtEntraDeviceJoinRestricted
ServicesGraph