Microsoft 365 Best Practices Library · Identity and sign-in

YubiKey and FIDO2 security keys for Microsoft 365

A FIDO2 security key, such as a YubiKey, is a small hardware device that proves who you are at sign-in and cannot be tricked by a fake sign-in page. This guide shows how to enable passkeys in Microsoft Entra ID, who should get a key first, how people register one, and how to require it for the accounts that matter most.

Prefer to have it done for you? IT Perfection provides Entra ID and Conditional Access setup for companies in Irvine, Orange County and Los Angeles County.

Ali Hassani, CISSP and Certified CISO, IT PerfectionWritten by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026

Small team discussion at an office table
1 · PlanWe decide who gets keys, which models, and who holds the spares.

Microsoft 365 Best Practices Library › Identity and sign-in › FIDO2 security keys

What it isA passkey stored on a hardware security key. The key signs in only to the real Microsoft sign-in page, so a look-alike page gets nothing.
Where it livesMicrosoft Entra admin center › Entra ID › Authentication methods › Policies › Passkey (FIDO2)
License neededPasskeys (FIDO2) are available in every Microsoft Entra ID edition, including Free. Requiring them through Conditional Access needs Entra ID P1. The keys are hardware bought separately.
Time to set upAbout one hour to enable and test, then roughly ten minutes per person to register.
Risk if missingHigh Codes and approval prompts can be phished or approved by mistake; administrators are the main target.

Why it matters

MFA that a fake sign-in page cannot steal

Most MFA methods depend on a person making the right choice: typing a code, or approving a prompt. A convincing fake sign-in page can collect the password and the code together and pass them on within seconds. A FIDO2 security key works differently. The key checks the address of the site it is talking to, and answers only the real one. There is nothing for the user to type and nothing for a fake page to forward.

Microsoft describes passkeys as strong, phishing-resistant authentication, and recommends a passkey (FIDO2) for emergency access accounts. For a small organization the practical plan is simple: administrators first, then anyone who handles money or sensitive records, then everyone else if budget allows.

Public case · August 2022

Employees were phished; the keys still held

In August 2022 Cloudflare published an account of a text-message phishing campaign against its staff. The company said some employees received messages that led to a convincing copy of its sign-in page, and that three of them entered their credentials. Cloudflare reported that the attacker still could not sign in, because every employee was issued a FIDO2-compliant security key tied to the real site.

That is one company’s report of its own incident, not a promise about any other. It is useful because it shows the difference this page is about: people can be fooled, and a control that does not depend on them noticing still works.

Source: Cloudflare, “The mechanics of a sophisticated phishing scam and how we stopped it”, August 9, 2022. IT Perfection had no part in this case.

Before you start

What to have ready

Two keys per personOne to use and one spare stored safely. A person with a single key and no backup method is one lost key from a lockout.
A list of who gets keys firstAdministrators and emergency access accounts, then finance and anyone who approves payments.
Compatible devicesMicrosoft notes the best experience on Windows 10 version 1903 or later for Entra joined devices; check the USB or NFC type each person needs.
The right roleAn Authentication Policy Administrator enables the method; a Conditional Access Administrator creates the policy that requires it.

Buy keys from the manufacturer or an authorized reseller, and check the model against Microsoft’s list of FIDO2 security keys eligible for attestation. Check prices and terms yourself before ordering; this guide does not recommend a particular store.

Step by step

Deploy security keys in six steps

  1. Enable passkeys and passkey profiles

    Microsoft Entra admin center › Entra ID › Authentication methods › Policies › Passkey (FIDO2)

    Select Passkey (FIDO2). Microsoft now manages passkey settings through passkey profiles; the banner on this page lets you opt in, and your current settings move to a Default passkey profile. Note that after you opt in you cannot opt out. On the Configure tab set Allow self-service set up to Yes, otherwise users cannot register a key themselves.

  2. Create a profile for administrators

    Passkey (FIDO2) › Configure › Add passkey profile

    Add a profile for high-privilege accounts with Passkey types set to Device-bound and Enforce attestation set to Yes. Attestation lets Microsoft Entra ID verify the make and model of the key when it is registered. Turn on Enforce key restrictions only if you want to allow or block specific key models by their identifier (AAGUID); changing that list later can stop keys that are already in use.

  3. Target the right groups

    Passkey (FIDO2) › Enable and Target › Add target

    Assign the administrator profile to your admin group and the default profile to a pilot group or to all users. A person in an excluded group is blocked from passkey registration and sign-in entirely, so check the exclusions.

  4. Register the keys

    mysignins.microsoft.com/security-info › Add sign-in method

    Each person signs in, opens Security info, chooses Add sign-in method, selects the security key option and follows the prompts: insert the key, create a PIN for it, and touch it. Microsoft requires the user to have completed MFA within the past five minutes before a passkey can be registered. Register the spare key in the same sitting, and label both.

  5. Require phishing-resistant sign-in for administrators

    Microsoft Entra admin center › Entra ID › Conditional Access › Create new policy from templates

    Use the template Require phishing-resistant multifactor authentication for administrators. It relies on the built-in phishing-resistant authentication strength. Create it in report-only mode, confirm that every administrator already has a key registered, exclude the emergency access group, and then switch it on.

  6. Set the rules for lost keys and leavers

    Microsoft Entra admin center › Entra ID › Users › select the user › Authentication methods

    Write down what happens when a key is lost: the person reports it, an administrator deletes that passkey from the user’s authentication methods, and the spare is used until a replacement is registered. When someone leaves, remove their methods and collect the keys. Emergency access keys are stored in separate, secure locations and tested at least every 90 days.

Recommended values

Security key settings at a glance

SettingRecommended valueWhy
Passkey (FIDO2) methodEnabled, targeted to groupsLets you start with administrators and expand.
Allow self-service set upYesUsers can register their own key in Security info.
Passkey type for adminsDevice-boundThe private key stays on one physical device.
Enforce attestation for adminsYesConfirms the key is genuine and from the stated vendor.
Key restrictionsOff unless you standardize on specific modelsA changed list can block keys already in use.
Keys per personTwoA registered spare avoids a lockout.
Policy for adminsRequire phishing-resistant MFACodes and prompts are no longer accepted for admin roles.

Check that it works

How to confirm the result

  • An administrator can sign in with the key. Use a private browser window: insert the key, enter the PIN, touch it.
  • The sign-in log shows the method. Open the sign-in; the authentication details list a passkey (FIDO2).
  • The spare key works too. Test both keys, then store the spare.
  • A weaker method is refused for admins. With the policy on, an admin sign-in with only an app approval does not satisfy the requirement.
  • The record is saved. Keep a list of who holds which key, with serial numbers, in your IT records.

Mistakes and rollback

Common mistakes, and how to step back

  • One key and no backup. Losing it means a help-desk call before any work can be done.
  • Requiring keys before they are registered. The policy locks out every administrator who has not finished registration.
  • Emergency accounts inside the policy. They should be excluded from blocking policies and protected by their own keys.
  • Opting in to passkey profiles without reading the note. The opt-in cannot be reversed.
  • Changing the allowed key list carelessly. Removing a model stops everyone using that model from signing in.
  • Forgetting the PIN rules. A key locks itself after too many wrong PIN attempts and may need to be reset and registered again.

To roll back: set the Conditional Access policy that requires phishing-resistant MFA back to Report-only. Administrators can then sign in with their other registered methods while you fix registration. Disabling the passkey method itself is rarely needed.

Licenses and cost

What you need to buy, and what you do not

ItemLicense or cost
Passkey (FIDO2) sign-inIncluded in every Microsoft Entra ID edition, including Free
Passkey profiles and targetingIncluded
Conditional Access policy requiring phishing-resistant MFAMicrosoft Entra ID P1
Hardware security keysBought separately, two per person recommended

Source: How to enable passkeys (FIDO2) in Microsoft Entra ID. Hardware prices vary by model and seller; get a current quote before you order.

Have us do it

Prefer to hand this off?

IT Perfection sets up FIDO2 security keys for companies in Irvine, Orange County and Los Angeles County: who gets keys, the passkey profiles, registration sessions with your staff, the policy for administrators and a written lost-key procedure. The keys are purchased by you, directly from the vendor of your choice. You receive a written scope and a written quote before any work starts.

Ali Hassani, CISSP and Certified CISO, IT Perfection

Who does the work

Written by Ali Hassani, CISSP, C|CISO

Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.

This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.

ISC2 CISSP badgeEC-Council Certified CISO (C|CISO) badgeCisco CCNP Routing and Switching badgeMCSE: Server Infrastructure badgeMicrosoft MCSE badgeMCSA: Security badgeCisco CCNA Cybersecurity badgeMCITP badge

FAQ

YubiKey and FIDO2 keys: common questions

Does a YubiKey work with Microsoft 365?

Yes. Microsoft Entra ID supports passkeys stored on FIDO2 security keys, including YubiKey models that support FIDO2. An administrator enables the Passkey (FIDO2) method and each user registers their key in Security info.

Do I need a special license for FIDO2 security keys?

No. Passkeys (FIDO2) are available in all Microsoft Entra ID editions, including Free. A Conditional Access policy that requires them needs Microsoft Entra ID P1, and the keys themselves are bought separately.

Why is a security key safer than an authenticator code?

A code can be typed into a fake sign-in page and passed on. A security key checks the address of the site and answers only the genuine sign-in page, so there is nothing for a fake page to capture.

How many security keys does each person need?

Two is the practical minimum: one for daily use and a registered spare stored safely, so a lost key does not lock the person out.

What happens if a security key is lost?

The person reports it, an administrator deletes that passkey from the user’s authentication methods, and the spare key or another registered method is used until a replacement is registered.

What is the difference between a device-bound and a synced passkey?

A device-bound passkey stays on one device, such as a security key. A synced passkey is stored with a cloud provider such as iCloud Keychain and is available on the person’s other devices. Synced passkeys do not support attestation.

Need this done for your business?

IT Perfection plans, installs and supports this for companies in Irvine and Orange County

The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.

Entra ID and Conditional Access

MFA, sign-in rules and admin roles set up the right way.

View service

Hybrid identity and Entra Connect

On-premises Active Directory and Entra ID kept in sync.

View service

Business password manager rollout

A company password manager deployed and adopted by staff.

View service