How to create a user in azure active directory

In this Azure Active Directory tutorial, we will discuss how to create a user in Azure Active Directory.

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.

how to create a user in azure

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

create user in Azure active directory

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

azure create new user

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

how to create user in azure active directory

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
how to create user in azure ad

Then, you can create a password or 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 in the Country.

create user in azure ad

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.

how to create user in azure active directory

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

how to create user in azure ad

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

azure active directory user account

This way, we can create a user in the 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
azure create user

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.

azure active directory create user

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

create user in azure ad

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:

create multiple user accounts in azure active directory

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.

how to create azure ad account

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

how to add user in azure active directory

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

azure ad create user powershell

Once the bulk users are added to the Azure ad, it will show a successful message.

Then, if you refresh the All Users page, you can see the users created successfully.

add user azure

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.

Create a user in Azure active directory using PowerShell

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:

powershell create azure ad user

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.

UserPrincipalNameFirstNameLastNameDisplayName
User15@SPSkyTraining.onmicrosoft.comUser15SUser15 S
User16@SPSkyTraining.onmicrosoft.comUser16KUser16 K
User17@SPSkyTraining.onmicrosoft.comUser17PUser17 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:

how to create users in azure

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.

azure ad user creation

Then click on the Edit button like below:

azure ad create user powershell

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

powershell create azure ad user from csv

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

  1. The first step is to create a variable using the New-Object PowerShell cmdlet.
  2. The next step is to set the password in the variable you created above.
  3. You can use the New-AzureADUser PowerShell cmdlet to create the new user.
  4. Now, in the next step, PowerShell will return the new user object that you have created above and will also display the ObjectId.

This tutorial taught us how to create a user in Azure Active Directory. Thanks for reading this article !!!