Block device code flow in old Microsoft Entra tenants

Karl Emil Nikka 5 Reputation points
2026-08-16T13:56:58.9766667+00:00

I read that new Microsoft Entra tenants (created 1 July 2026 or later) no longer need Entra P1 to block device code flow. It is now part of the security defaults.

Starting July 1, 2026, all new Microsoft Entra tenants block device code flow as part of security defaults. Applications or devices that depend on device code flow won't be able to complete sign-in while security defaults are enabled.

Is there a way to get the same protection for older tenants? I have to older tenants with security defaults enabled since many years. Both of them still allow device code flow-based authentication. Disabling and re-enabling security defaults didn’t help.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Marius Vaičeliūnas 230 Reputation points
    2026-11-03T10:36:29.05+00:00

    Hello,

    Thank you for reaching out with your question.


    Unfortunately, blocking device code flow using Security Defaults for tenants created before 1 July 2026 isn't supported.

    The only solution as of now is to use Entra ID P1 license and conditional access policy.


    If you found this reply helpful, please consider upvoting or accepting it as the answer.

    Best regards.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.