In this Azure Active Directory tutorial, we will discuss how to create a user in Azure Active Directory. Apart from this, we will also discuss the following:
- Create a user in Azure Active directory
- Create guest accounts in Azure Active Directory
- How to create multiple user accounts in Active directory
- Create a user in Azure AD using C#.Net
- Create a user in Azure AD using PowerShell
- Create multiple user accounts in the active directory using PowerShell
- Update user details in Azure AD
Table of Contents
- Create a user (account) in Azure active directory
- Create guest accounts in Azure Active Directory
- How to create multiple user accounts in Azure active directory
- Create a user in Azure active directory using C#.Net
- Create a user in Azure active directory using PowerShell
- Create multiple user accounts in Azure active directory using PowerShell
- Add users to Azure active directory PowerShell
- Update User Details in Azure Active Directory
- FAQs
Create a user (account) in Azure active directory
Now, we will see how to create a user in Azure active directory from the Azure portal.
We can create a user account from the Azure Portal and the Azure AD portal.
Login to Azure Portal. Then click on Users from the home page.

Or you can log in to Azure AD. Then click on Azure Active Directory like below:

Or you can also directly click on the Add a user from the Quick Tasks.

Then, it will open the All Users page, where you can see all the users. Click on + New user like below:

Then select the option “Create user”, then provide the user details like below:
- User name: Provide the user name. It will display a notification if the user name already exists.
- Name: Provide the full name or display name
- First name: Provide the first name
- Last name: Provide the last name

Then, you can create a password, or you can have the auto-generated password.
If you want to add a user to a group, you can add it in the Groups and Roles section.
You can also enable or disable Block sign-in by selecting the Yes/No option in the Settings.
Also, you can select the Usage location the Country.

You can also click the 0 groups selected link and select the group name.
As you can see, the user will be added to the Global administrator.

Then select the Job title and Department of the user like below:

Then click on the Create button, which will create the user. You can see the user created below:

This way, we can create a user in Azure active directory from the Azure portal.
Create guest accounts in Azure Active Directory
Now, we will see how to create guest accounts in Azure active directory.
In the same New user screen, click on Invite user and then fill in the details like:
- Name: Full name or the display name
- Email address: Any user’s email address
- First name: User’s first name
- Last name: User’s second name

Apart from that, you can provide Group or Job info and click on Invite.
Once the user is invited, you can see the user will be displayed as the Guest user.

The user will also receive an email with the invitation with a link to accept the invitation.

The user needs a Microsoft account to accept the invitation.
This way, we can add guest users to Azure active directory.
How to create multiple user accounts in Azure active directory
Now, we will see how to create multiple users accounts in Azure active directory from the portal.
In the All Users, click on Bulk Create like below:

Here, you can select the Download csv template, which will be a template you can follow in which format you can upload multiple users to Azure active directory.

Then, you can upload the CSV file to create bulk users in the Azure active directory.

Then click on Submit, and it will display the progress like below:

It will show a successful message once the bulk users are added to the Azure ad.
Then, if you refresh the All Users page, you can see the users created successfully.

This is how we can create multiple users accounts in Azure active directory, or you can add bulk users in Azure active directory from a .csv file.
Create a user in Azure active directory using C#.Net
I have created a separate post on how to create a user in Azure active directory using C#.
Create a user in Azure active directory using PowerShell
Now, we will see how to create a user in Azure AD using PowerShell.
If you are new to Azure PowerShell, check out an article on How to Connect to Azure and Azure Active Directory (Azure AD) from PowerShell.
We can use the New-AzureADUser PowerShell cmdlets to create a user in Azure.
Run the below command in Windows PowerShell ISE.
Connect-AzureAD
$PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile
$PasswordProfile.Password = "Dummy@Password"
New-AzureADUser -DisplayName "User10" -PasswordProfile $PasswordProfile -UserPrincipalName "User10@spskytraining.onmicrosoft.com" -AccountEnabled $true -MailNickName "User10"
Once you run the command, you can see in the Azure Portal or Azure AD portal the user got created.

Also, you can use the New-MsolUser cmdlet to create an user in Azure AD.
You can run the below command.
Connect-MSOlService
New-MsolUser -DisplayName "Test User" -FirstName Test -LastName User -UserPrincipalName TestUser@spskytraining.onmicrosoft.com -Password Hello@12345
You can see the user was created below:

This is how we can create user in Azure AD using PowerShell.
Create multiple user accounts in Azure active directory using PowerShell
Now, we will see how to create multiple users or bulk users from .csv file in the Azure active directory using PowerShell.
Here, I have a .csv file that has the below data and columns.
UserPrincipalName | FirstName | LastName | DisplayName |
User15@SPSkyTraining.onmicrosoft.com | User15 | S | User15 S |
User16@SPSkyTraining.onmicrosoft.com | User16 | K | User16 K |
User17@SPSkyTraining.onmicrosoft.com | User17 | P | User17 P |
Add users to Azure active directory PowerShell
Save it in your local system and run the below command:
Connect-MSOlService
Import-Csv -Path "E:\Bijay\ADUsers.csv" | foreach {New-MsolUser -DisplayName $_.DisplayName -FirstName $_.FirstName -LastName $_.LastName -UserPrincipalName $_.UserPrincipalName} | Export-Csv -Path "E:\Bijay\ADUsersResults.csv"
Here, I have added the above columns. If you want to add more parameters, you can add them like below:
Connect-MSOlService
Import-Csv -Path "E:\Bijay\ADUsers.csv" | foreach {New-MsolUser -DisplayName $_.DisplayName -FirstName $_.FirstName -LastName $_.LastName -UserPrincipalName $_.UserPrincipalName -UsageLocation $_.UsageLocation -LicenseAssignment $_.AccountSkuId} | Export-Csv -Path "E:\Bijay\ADUsersResults.csv"
You can also check the E:\Bijay\ADUsersResults.csv file for more details.
Once it runs successfully, you can see the users added successfully like below:

We can create multiple user accounts in Azure active directory using PowerShell.
Update User Details in Azure Active Directory
Now, we will see how to update user details in the Azure Active Directory (Azure AD). We can update personal information, Job Information, Contact Information, etc. Apart from that, we can also update the user photo in Azure AD.
From the All Users page, click on the particular user whose information you want to update.

Then click on the Edit button like below:

Then, the information will be opened in the Edit mode. Below, I have uploaded a new user photo for use in Azure AD.

Apart from this, you can update other user’s information on the same page in Azure AD.
FAQs
What is Azure Active Directory User Account
An Azure Active Directory account is an account that can be used to perform many tasks in the Azure Active Directory. You can create the Azure Active Directory user account using the Azure Portal or Azure AD portal. Check out how to create the Azure Active Directory User Account now.
When creating a new user in Microsoft Azure, how is the initial password determined?
The initial password is determined using the below steps
- The first step is to create a variable using the New-Object PowerShell cmdlet.
- The next step is to set the password in the variable you created above.
- You can use the New-AzureADUser PowerShell cmdlet to create the new user.
- Now, in the next step, PowerShell will return the new user object that you have created above and will also display the ObjectId.
- Get-AzADUser
- Azure Active Directory Tutorial
- How to delete a user in Azure Active Directory
- How to create and add members to Azure Active Directory Group
- What is Azure Active Directory B2B collaboration (Azure AD B2B)
In this tutorial, we learned:
- How to create a user (account) in Azure active directory
- How to create guest accounts in Azure Active Directory
- How to create multiple users accounts in the Azure active directory
- How to create a user in Azure AD using C#.Net
- How to create a user in Azure AD using PowerShell
- How to create multiple users accounts in Azure active directory using PowerShell
- How to update User Details in Azure Active Directory
- What is Azure Active Directory User Account
- When creating a new user in Microsoft Azure, how is the initial password determined?
I am Bijay, a Microsoft MVP (10 times) having more than 17 years of experience in the software industry. During my IT career, I got a chance to share my expertise in SharePoint and Microsoft Azure, like Azure VM, Azure Active Directory, Azure PowerShell, etc. I hope you will learn from these Azure tutorials. Read more