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.
Written by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026



Microsoft 365 Best Practices Library › Identity and sign-in › FIDO2 security keys
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
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
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.
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.
Illustration with sample profiles, not a screenshot. Up to three profiles are supported at the time of writing.Entra admin center / Authentication methods / Passkey (FIDO2)IllustrationOverviewUsersAuthentication methodsConditional AccessSign-in logsAuthentication methods › Passkey (FIDO2) › ConfigurePasskey profilesProfile Passkey types Attestation Admins: hardware keys Device-bound Enforced Default passkey profile Device-bound, Synced Not enforced Allow self-service set upYesNoTarget 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.
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.
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.
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
| Setting | Recommended value | Why |
|---|---|---|
| Passkey (FIDO2) method | Enabled, targeted to groups | Lets you start with administrators and expand. |
| Allow self-service set up | Yes | Users can register their own key in Security info. |
| Passkey type for admins | Device-bound | The private key stays on one physical device. |
| Enforce attestation for admins | Yes | Confirms the key is genuine and from the stated vendor. |
| Key restrictions | Off unless you standardize on specific models | A changed list can block keys already in use. |
| Keys per person | Two | A registered spare avoids a lockout. |
| Policy for admins | Require phishing-resistant MFA | Codes 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
| Item | License or cost |
|---|---|
| Passkey (FIDO2) sign-in | Included in every Microsoft Entra ID edition, including Free |
| Passkey profiles and targeting | Included |
| Conditional Access policy requiring phishing-resistant MFA | Microsoft Entra ID P1 |
| Hardware security keys | Bought 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.
Next in the library
Related guides
Want a quick self-check first? Try the free Entra ID security assessment tool. For a formal written audit of Microsoft Entra ID, OC Security Audit, our related cybersecurity brand also led by Ali Hassani, does that work.

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.








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.
Hybrid identity and Entra Connect
On-premises Active Directory and Entra ID kept in sync.
View serviceBusiness password manager rollout
A company password manager deployed and adopted by staff.
View service