azureblog.co.uk
← cd ~/posts

Require phishing-resistant MFA on every PIM activation

PIM can now require a Conditional Access authentication context every time someone activates a role, and it's generally available. Here's how to set it up properly.

2 min read✓ checked 22 Apr 2026Entra ID · Governance · Conditional Access · What's new
On this page
  1. How it fits together
  2. Setting it up
  3. Things to watch

Privileged Identity Management has always been able to require on activation. The problem is that a user who already signed in with MFA often isn't challenged again, and any MFA method counts, including weaker ones. Requiring a Conditional Access authentication context on activation fixes both: you decide exactly what the user must prove, and it's checked every time they activate.

AdminPIMConditional AccessEntra IDRequest activation ofGlobal Administrator1Requires context:Privileged roleactivation2Prove it: phishing-resistant MFA from acompliant device3Passkey sign-in on a compliant laptop4Context satisfied5Role activated for the set duration6
Activation with an authentication context.
  1. 01Admin requests role activation
  2. 02PIM requests authentication context
  3. 03Conditional Access demands phishing-resistant MFA
  4. 04Role active, time-boxed

How it fits together

  • Authentication context is a label, such as "Privileged activation", that apps and services can request.
  • A Conditional Access policy targets that label and sets the requirements, for example MFA from a compliant device.
  • PIM requests the label when someone activates a role, so the policy is enforced at that moment.

Setting it up

  1. Create the context. In the Entra admin center, go to Conditional Access → Authentication contexts and create one, for example Privileged role activation. Make sure it's published to apps.
  2. Create the policy. Make a new policy targeting your admins. Under Target resources, choose Authentication context and select it. Under Grant, require the Phishing-resistant MFA . Optionally add a compliant device requirement and a sign-in frequency of every time.
  3. Test in report-only mode, then switch it on.
  4. Configure PIM. Go to Identity governance → Privileged Identity Management → Microsoft Entra roles → Settings, pick a role and choose Edit. Under activation, select On activation, require Microsoft Entra Conditional Access authentication context and choose your context.
  5. Repeat for each high-value role, starting with Global Administrator, Privileged Role Administrator, Security Administrator and Conditional Access Administrator.

Things to watch

  • Make sure admins have a passkey first. If you require phishing-resistant MFA, admins without a or security key can't activate. Use a registration campaign or passkey profile ahead of time.
  • Exclude your break-glass accounts from the policy, and monitor their sign-ins separately.
  • Apply it to PIM for Groups too if you use groups to grant privileged access. The same setting exists in group role settings.
Why bother: stolen sessions and phishing kits that relay MFA prompts are common. An attacker holding a stolen token still can't elevate if each activation demands a fresh, phishing-resistant sign-in.

Require MFA on activation

The old setting

  • Any MFA method counts
  • Often satisfied by the existing session
  • No device or location conditions

Require authentication context

Recommended

  • You choose the authentication strength
  • Can require a compliant device
  • Sign-in frequency every time forces a fresh check
  • Policy is visible and testable in Conditional Access
Plain MFA on activation versus an authentication context.
  • Exclude from the policy
  • Make sure every admin has a phishing-resistant method registered first
  • Test in mode, then use
  • Apply the context to every privileged role, not just Global Administrator
  • Check scripted activations still work, since the token must satisfy the context
Do I still need the MFA on activation setting?

No. The replaces it and does more. Use one or the other per role.

Does it work for Azure resource roles and groups?

Yes. for Azure roles and PIM for Groups can require an authentication context too.

Next in Conditional Access from zero · part 7 of 7Six KQL queries for Entra sign-in logs every admin should keep →Next in Locking down admin access · part 4 of 6Lock down app consent without blocking your users →