Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
@Gregory Suvalian, Thanks for posting in Q&A. Based on my experience, it is possible to use Conditional Access policies to control access to applications based on device compliance. However, there is no method of using the currently logged on user as a signal inside Conditional Access policy evaluation.
To prevent the ability to use local accounts to log in, you mentioned you can do it via configuration policy. But you don't want it to be prevented on personal device. To avoid this, you can create a filter for corporate devices by setting (device.deviceOwnership -eq "Corporate") and apply the configuration policy only to corporate device.
https://learn.microsoft.com/en-us/mem/intune/fundamentals/filters
https://learn.microsoft.com/en-us/mem/intune/fundamentals/filters-device-properties
Hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.