I accidently removed a user profile for 1 user in SharePoint Online.
Under User profiles -> Manage user profiles I selected and removed the user.
How can I restore this user profile?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
You can't. The user should recreate itself automatically with the next sync from Azure to SharePoint Online directory. When it does:
1) Verify the personal site of the user. Does it look like tenant-my.sharepoint.com/personal/user_domain_com or tenant-my.sharepoint.com/personal/user_domain_com1? If there is "1" at the end:
2) Verify how many users appear in People Picker (in web parts or while sharing a site with this user) after you type in his name. If there are 2, you may be able to share with one and not the other. If there is 1, you may receive an error: "Entry for the user is not unique" or "User not found in the directory" while trying to share.
For both situations (or in case the user profile did not get recreated and the user lost access) contact Microsoft support and provide them with the username to fix. Do not use any scripts to attempt to fix the issues yourself (trust me, I know :).
If, however, nothing of this is happening in the nearest (let's say 72h to be on the safe side, but in reality immediately or 24h max), and the user has access to all services, then you need to take no action. Everything got fixed by itself :)