In Microsoft EntraWe have a new user with the same UPN as old user deleted a few years ago and the problems come

AhDSuper 0 Reputation points
2024-07-09T13:48:19.36+00:00

We have a problem here:

We have a new user A with UPN ******@MYDOMAIN.COM created in Microsoft Entra. We suspected that this user is created with the same UPN for an old user B we deleted a few years ago.

Now, whenever someone is trying to share a file in Onedrive to that user A, the email user A received with the access link cannot be used. Whenever user A clicks the access link, the system would prompt a window saying user A does not process the permission to access the file. When user A press the request access button, the original sender would receive a email request with the old user B name and the old user's email address.

We are using Azure AD connect to create users in Microsoft 365 when we have a new user created in on-premise AD Directory.

Is there any clue we can trouble shoot and solve this problem?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,256 Reputation points Microsoft Employee Moderator
    2024-07-11T00:43:55.77+00:00

    Hi @AhDSuper ,

    It sounds likely that the first user was not permanently deleted. After you delete a user, the account remains in a suspended state for 30 days. During that 30-day window, the user account can be restored, along with all its properties. After that 30-day window passes, the permanent deletion process is automatically started and can't be stopped.

    If a new account is created using the same UPN, the new account will be assigned a new ID value. If the user account is permanently deleted and not just suspended, the user account's properties cannot be restored. But the user account can be restored within 30 days of deletion, so it sounds likely that the account is not fully gone. You can permanently delete the user following the steps in this article: https://learn.microsoft.com/en-us/entra/fundamentals/users-restore

    See also:

    https://learn.microsoft.com/en-us/microsoft-365/admin/add-users/restore-user?view=o365-worldwide#restore-a-user-that-has-a-user-name-conflict

    If the information helped you, please Accept the answer. This will help us and improve searchability for others in the community who may be researching similar questions.

    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.