Skip to main content
All CollectionsMigrateHelp me solve thisPowerShell Errors
There is no user on the tenant with the email address
There is no user on the tenant with the email address
Updated over 2 weeks ago

Symptoms

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>

Error Code

Not applicable

Details

This error can occur when you have entered the account name of the user instead of their email address. An account name cannot be used to provision a OneDrive, only an email address.

Follow these steps to verify if the user has an email address:

  1. Access your SharePoint admin center.

  2. Click user profiles on the left navigation pane.

  3. Under People, click on Manage User Profiles.

  4. Search for the user.

userprovision.png

Here is a close up of each element on the page:

  1. The user's account name. It cannot be used to provision the user's OneDrive.

  2. The user's email address. Use this to provision the user's OneDrive.

  3. It is possible that the user does not have an email address yet. You need to set the email address for the user first.

Solution

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 (see element (1) in the screenshot above).

Did this answer your question?