When trying to provision a user's OneDrive through PowerShell, you get the following error message :
There is no user on the tenant '<TENANT_URL>' with the email address '<USER_EMAIL>'. Please visit our documentation for more information on this error: <ARTICLE_URL>
This can happen when you have entered the account name of the user instead of his email address. The account name cannot be used to provision a OneDrive, it only works with the email address. It is also possible that a user does not have an email address. Here are the explanations on how to verify this. First, go to your SharePoint admin center. Then click user profiles on the left navigation pane. Under People, click on Manage User Profiles. Now search for the user that you are having errors with.
- This is the user's account name. It cannot be used to provision the user's OneDrive.
- This is the user's email address that needs to be used to provision the user's OneDrive.
- It is possible that the user does not have an email address yet. You need to set the email address for the user first.
If the user does not have an email address yet, you need to set it up first. Once set up, run the command again with the new email address.
If you got this error but the user as an email address, make sure you did not use the account name.