Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with creating users in bulk #59463

Closed
lipalath-ms opened this issue Jul 22, 2020 · 7 comments
Closed

Issue with creating users in bulk #59463

lipalath-ms opened this issue Jul 22, 2020 · 7 comments

Comments

@lipalath-ms
Copy link

lipalath-ms commented Jul 22, 2020

Hi,

I'm trying to create users in bulk by following this documentation.

I logged into Azure Portal with the following account:

image

I created a csv file with the following details:

image

I see the following error message:

The user name in the uploaded file is not valid. Change the user name in the uploaded file to be a valid user name in your Azure AD. Ensure the domain portion of the user name is verified in your Azure AD or is the initial domain name (like *.onmicrosoft.com). Then resubmit your request.

What am I missing? Am I using an account that is a User administrator in the organization? How do I verify that? Could you please help me with this issue?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@amanmcse
Copy link
Contributor

@xyz92 Thank you for your feedback . We will investigate and update the thread further.

@krish-gh
Copy link
Contributor

krish-gh commented Jul 22, 2020

@xyz92 Can you check if there is any whitespace before or after the "User name [userPrincipalName]" field values? I could reproduce your error by adding an whitespace. After removing that it was all fine.

@krish-gh
Copy link
Contributor

krish-gh commented Jul 22, 2020

@xyz92 We have now updated the doc explicitly mentioning to check whitespace. The update should get published within few hours. Please feel free to revert if it does not solve your problem or have any further issue.

@lipalath-ms
Copy link
Author

lipalath-ms commented Jul 22, 2020

@krish-gh Thank you! I don't have any whitespaces in the username. I still see the issue. Could you reopen this issue? Just to confirm the values in Name, Username, Initial password can be test values correct?

@krish-gh
Copy link
Contributor

From the screenshot you shared above, it looks like you have space in the beginning of UPN. That's why I suspected it.

@krish-gh krish-gh reopened this Jul 22, 2020
@krish-gh
Copy link
Contributor

krish-gh commented Jul 22, 2020

@xyz92 During troubleshooting over chat, it was found you had blank space at the end of UPN and after cleaning it, it worked.

@steph409
Copy link

Hi @krish-gh,
ran into the same issue, removing the whitespaces also fixed it for me. The template "UserCreateTemplate.csv" you can download in azure contains a whitespace:

Example: Chris Green, chris@contoso.com, myPassword1234, No

Removing the whitespace in the template would be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants