Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Can't set up MFA: "You cannot have more than 5 hardware tokens or authenticator apps" (five devices already registered)

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A user gets a new phone, or sets up a second tablet, and tries to add the authenticator app for multifactor authentication. The set-up stops with a message saying they cannot have more than five hardware tokens or authenticator apps. The page's explanation is that five devices were registered earlier and the limit has filled.

Microsoft's page for this message gives the cause, the property that holds the five registrations, and two fixes. One is for the user, in a web browser. The other is for a Global Administrator, using Microsoft Graph. The sections below follow those two and add the checks that show which one applies and what to record before deleting anything.

Nothing before the Fix section changes anything. The fixes delete sign-in methods, which cannot be undone, so read the undo notes first.

What the error means

Microsoft says the message appears when you try to set up MFA and you have already registered five devices to use authenticator apps. The text on the page is:

You cannot have more than 5 hardware tokens or authenticator apps. Please delete one or more of your authenticator apps and then add a new authenticator app. If you need to delete your hardware token, please contact your administrator. Disabling a hardware token will not allow you to add new authenticator app.
You have too many devices registered.

The cause on the page: "You previously set up five different phones or other devices to be registered for MFA by using an authenticator app. As a result, the maximum allowed number of device tokens (5) are already persisted in the StrongAuthenticationPhoneAppDetail property of your directory user object."

So the limit is not a licence limit or a policy toggle. It is a count on the user object, and only deleting registrations lowers it. The message itself says hardware tokens count and that disabling a hardware token will not let you add a new authenticator app. The page does not say what to do about a hardware token beyond the message's own instruction to contact your administrator.

Likely causes

Cause What you see How to confirm
Five authenticator registrations from old phones or devices remain on the account The message above when adding a sixth The user's sign-in methods list at https://aka.ms/mysecurityinfo, or Authentication methods for the user in the Microsoft Entra admin portal
A hardware token takes one of the five Same message; the text says to contact your administrator about a hardware token The sign-in methods list shows a hardware token as well as phones
Not a cause but a condition on the browser fix: the user is not an administrator, or is not the only one The page says someone else must first set the requirement to re-register MFA before the user deletes methods in the browser Solution 1, Part 1 on the page

The page gives no counts, so the rows are not in order of likelihood. The first row is the page's stated cause.

Prove the cause before changing anything

All of these read only, except the permission consent in step 5.

  1. Confirm the exact message. Ask the user to read it out or send a screenshot. The page's text includes both the "cannot have more than 5" sentence and "You have too many devices registered".

  2. Look at what is registered. The page says to go to https://aka.ms/mysecurityinfo to view the sign-in methods. It says the list might include a phone method associated with a phone number, and an authenticator app method associated with a particular device. An administrator can see a user's methods in the Azure portal: search for and select Microsoft Entra ID, select Users under Manage, select the user's display name, then Authentication methods under Manage. Count the entries that are authenticator apps or hardware tokens.

  3. Identify which of them are still in use. The page gives no way to tell which registration is current, so ask the user which devices they still have. An old device the user no longer owns is the first candidate for removal.

  4. Check whether any registered method is a passwordless sign-in method. The page warns that deleting one needs a two-factor sign-in, and that you should set up another two-factor method, such as a phone call or an SMS text message, beforehand.

  5. If the administrator wants to use Microsoft Graph, read the registrations first. The page's read-only request is a GET to the beta endpoint, run as a Global Administrator in Graph Explorer:

GET https://graph.microsoft.com/beta/users/<user-principal-name>/authentication/microsoftAuthenticatorMethods

The page says the permission UserAuthenticationMethod.ReadWrite.All may need to be consented in the Modify permissions tab if a permission error appears. Consenting is itself a change to the Graph Explorer permissions, so this step is not read only. The response lists each authenticator method with an id, displayName, deviceTag, phoneAppVersion and createdDateTime. The page's sample shows a displayName of SM-G973F. Save the whole response: it is the record of what was registered.

Example (illustrative): at a Canberra consultancy, jo@example.com.au has replaced a phone each year for five years and kept the old registrations. The user's methods page lists five authenticator entries, three of them for devices Jo no longer has. That matches the page's cause and shows which entries can go.

Fix

Microsoft gives two solutions. Solution 1 is for the user in a browser, with an administrator step first when the user is not the only administrator. Solution 2 is for a Global Administrator using Graph, and the page says Graph is in some cases the only available solution, for example with security defaults.

Solution 1, Part 1: require re-registration of MFA (not needed if the user is the only administrator)

Disruptive step: The next steps mark the user so that they must register multifactor authentication again. Microsoft's authentication methods policy page says that methods which are no longer available due to Require re-register multifactor authentication also appear in the user's list of unusable methods, so, on our reading, the user can lose the use of existing methods until they register again. The page gives no step to clear this requirement once it is set, so it cannot be undone from the page.

The page says this procedure is not required if you are the only administrator for your Microsoft Entra ID. Otherwise another administrator sets it for the user.

Before you start, write down the user's current methods from the proof step, because this setting changes which of them can be used.

  1. In the Azure portal, search for and select Microsoft Entra ID.
  2. In the Microsoft Entra navigation pane, under Manage, select Users.
  3. Select the Display name of the user.
  4. Under Manage, select Authentication methods.
  5. In the user menu, select Require re-register multifactor authentication.

To undo it: the page gives no step to clear the requirement. The user registers again, which is the state the requirement asks for. Record the time you set it and tell the user before you do.

Solution 1, Part 2: delete the sign-in methods in a web browser

Disruptive step: The next steps delete sign-in methods from the user's account. The page says you can delete any or all five. As general advice, not from the page, deleting a method the user still relies on can leave them unable to approve sign-ins on that device until it is registered again. The page also warns that deleting a passwordless sign-in method needs a two-factor sign-in, so set up another two-factor method, such as a phone call or an SMS text message, first.

Before deleting, note which registration belongs to which device, using the list from the proof step. A deleted method cannot be restored from a copy; the way back is registering the device again.

  1. Go to https://aka.ms/mysecurityinfo.
  2. Delete any or all five of the sign-in methods that are listed.

The page warns that if you try to delete a passwordless sign-in method, a dialog headed "Delete authenticator app" says "To delete this authenticator app, you need to sign in with two-factor authentication." To delete a passwordless method, set up another two-factor method (a phone call or an SMS text message, as the page suggests) beforehand, then use it to sign in when you retry.

To undo it: register the authenticator app on the device again from the sign-in methods page. That recreates one registration; it counts towards the limit of five again.

Solution 2: delete the authenticator apps with Microsoft Graph

Disruptive step: The next request deletes a user's authenticator app registration through the Graph API. It cannot be reversed with a request; the device has to be registered again by the user. Use the saved GET response to confirm that the id belongs to a device that is no longer needed. The page uses the beta endpoint.

The page says Global Administrators can delete a user's authenticator app through the Microsoft Graph API, and that in some instances this is the only available solution, for example with security defaults. The steps are to run the GET request above in Graph Explorer, copy and save the id property (a GUID) of each method to be deleted, and then run a DELETE request.

Before you start, save the full response of the GET request from the proof step, with every id and displayName. Without it, you cannot tell afterwards which device each deleted method belonged to.

Set the HTTP method to DELETE and run this request, with the user principal name and the id you saved:

DELETE https://graph.microsoft.com/beta/users/<user-principal-name>/authentication/microsoftAuthenticatorMethods/<authenticator-id-guid>

If the deletion succeeds, the page says a status message of this form appears:

No Content - 204 - <query-execution-time>

Repeat the request for each registration to delete.

To undo it: the user registers the device again in the authenticator app and the sign-in methods page. Nothing in Graph restores a deleted method from the id.

Confirm the fix

  • The user's sign-in methods list shows fewer than five authenticator apps or tokens.
  • The user can add the new device in the authenticator app without the message.
  • Run the GET request again, or reload the authentication methods page, and compare it with the record you saved. The deleted ids should be gone and the new one present.
  • The user signs in with the new device from another browser session.

What to watch afterwards

  • Other users with several old phones. The page's cause is accumulation, so the same message can appear for them at the next phone replacement.
  • Passwordless methods. The page's warning about the "Delete authenticator app" dialog means the user needs a second two-factor method before changes.
  • Users marked for re-registration. The authentication methods policy page lists such methods as unusable, so check that each user completes the registration.
  • Administrator accounts. If an administrator deletes all their own methods, they need another route into the tenant; safe Conditional Access testing and break-glass accounts is a related article.

Risks and limits

These steps have not been run or lab-tested.

The page's own date is 2024-10-28, and its Graph requests use the beta endpoint, which can change; check the current page and Graph reference before running them. It does not say which of the five registrations to delete, how the portal counts hardware tokens, or what happens to a user who deletes the method they were signed in with. The page gives no steps to restore a deleted method or to clear the re-registration requirement. The Graph permission named is UserAuthenticationMethod.ReadWrite.All, which an administrator consents to in Graph Explorer, so only a Global Administrator should be doing this. Microsoft's pages give no counts for how many cases each cause covers.

Sources