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

2 answers

Sort by: Oldest
  1. Marius Vaičeliūnas 310 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?


  2. Fabrizio Lo Conte Admin 0 Reputation points
    2026-11-10T13:33:37.8466667+00:00

    A feedback proposal as been set-up, as incredible as it sound.

    For user reading this, please vote it up, so that maybe also Microsoft realize the non-sense around this Security topics

    https://feedback.azure.com/d365community/idea/0d7ff115-0bdd-f111-bda1-6045bdb4e751

    Best

    F.

    Was this answer helpful?

    0 comments No comments

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.