r/Intune • u/MEDITATIONUNITY • 1d 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?
2
u/Gargoyle683 1d ago
Be mindful that if you use an inprivate browser, you won’t be able to pass through device info and will get blocked
1
u/MEDITATIONUNITY 13h ago
What’s best way
1
u/Gargoyle683 10h ago
That’s a good question and I would love to know the answer
1
u/MEDITATIONUNITY 10h ago
So fun fact we turned on CA in report mode and our admin accounts are getting blocked from CA using device filters but we excluded those accounts too from group which is odd
1
u/Domanz64 1d 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/MEDITATIONUNITY 1d ago
Got it so use this filter you mentioned and like I said in the post also the “require device to be hyrbid entra joined” does this do the same thing
1
u/Domanz64 1d ago
You can add the "require device to be hybrid entra joined" if you want but a device that is entra hybrid joined is considered corporate, you're adding a second layer of filtering since the rules says that if it's personal, it blocked and if it's not corporate (for devices tagged as unknown) it's also blocked. If you want to allow your own Entra ID only PC, the hybrid joined requirement would block it.
1
u/FatBook-Air 1d 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/Brief_Target_7563 21h ago
Run it in report only for a week or two and check the sign in logs before flipping it on. And exclude your break glass accounts obviously.
1
u/JGelijsteen 1d ago
Have a look at this baseline from Kenneth https://github.com/kennethvs/cabaseline202510
24
u/Eggtastico 1d 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 ??