Share via

Adding a YubiKey to my account double-escapes my display name's apostrophe as "'" in ykman

2026-05-19T22:20:43.01+00:00

ykman doesn't allow edits/renames, and I don't want to delete the security key from my account.

Microsoft Security | Microsoft Identity Manager
0 comments No comments

2 answers

Sort by: Most helpful
  1. I can't think of a display name 0 Reputation points
    2026-05-21T17:40:49.26+00:00

    It's the display name on my account, not my password.

    Was this answer helpful?

    0 comments No comments

  2. Sina Salam 29,846 Reputation points Volunteer Moderator
    2026-05-21T15:18:13.15+00:00

    Hello I can't think of a display name,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are encountering an issue where your password is being altered (double-escaped) during YubiKey (FIDO2 security key) registration in Microsoft Entra ID.

    This issue is not caused by YubiKey, Entra ID policy, or configuration errors. It is a string encoding problem triggered by special characters in the password. The only reliable and permanent fix is: Update the password to remove escape-sensitive characters and retry registration. - https://github.com/Azure/azure-sdk-for-net/issues/39434

    You can do the followings to resolve it:

    • Update the account password to remove escape-sensitive characters such as \, ", and '
    • Use only supported and stable characters (letters, numbers, and standard symbols)
    • Re-attempt YubiKey registration through the Microsoft Security Info portal after the password change

    After replacing the password to avoid encoding conflicts, the YubiKey registration process completes successfully without further authentication errors.

    Use the below resource links for guidance on secure registration and supported authentication methods:

    I hope this is helpful! Do not hesitate to let me know if you have any other questions, steps or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    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.