r/Intune • u/MEDITATIONUNITY • 3h ago
General Question Conditional Access – Blocking personal and unmanaged devices
We’re looking to block personal and unmanaged devices from accessing corporate resources across Windows, macOS, iOS and Android, only allowing corporate-owned devices managed through Intune in our tenant.
Im looking at using the following device filter in Conditional Access:
device.deviceOwnership -eq "Personal" -or device.deviceOwnership -ne "Company"
- Include filtered devices in policy
- Grant: Block access
Would this also block unregistered devices or devices managed by another organisation’s Intune tenant?
We already have compliance policies in place, but I want to ensure only our corporate-managed devices can access company resources.
Is this the best approach, or would you recommend excluding corporate-owned devices from the block policy instead?
11
u/Eggtastico 3h ago
Any reason not to use the built in Access controls > Grant, select Require device to be marked as compliant or Require Microsoft Entra hybrid joined device ??
1
u/Domanz64 2h ago
If for some reason compliance isn't possible yet, use device filter with device ownership equals Personal OR device ownership not equals Company. You have to use both in your policy. We've been using that for a while now with no issues.
1
u/FatBook-Air 3h ago
We do it by the associated computer object's attributes. Example: extensionAttribute1 -eq "employeedevice"
Not saying it's the right way, but that's what we do.
In either case, your users and devices will need to be a little more diligent on making sure they are truly and actively associated with Entra. Why? Because when a user logs in, you're not longer checking only the user's data; you're also checking the device.
This means that the device (and web browser) must provide this additional data, which can sometimes be a nuisance, especially if the MFA you're using isn't strictly passkey/FIDO2. With, say, the Microsoft Authenticator app (non-passkey version), when the user logs into Windows, he/she does not immediately have a full primary refresh token (PRT). The user has to do MFA, and that has to reach the OS. If MFA is done within a browser and if the browser does not intelligently pass that to the operating system, you still don't have a full PRT, and device data won't reach Entra, which means the user will appear to be logging in from a personal device even if they are not.
1
u/JGelijsteen 1h ago
Have a look at this baseline from Kenneth https://github.com/kennethvs/cabaseline202510
1
u/Gargoyle683 1h ago
Be mindful that if you use an inprivate browser, you won’t be able to pass through device info and will get blocked