How to Add User in Office 365? A Step-by-Step Guide

In organizations, managing user access is crucial for maintaining productivity and security. Microsoft 365 provides a centralized platform where businesses can efficiently create and manage user accounts for seamless collaboration. Whether onboarding new employees or granting access to external users, add user in office 365 ensures they can utilize essential services like Outlook, Teams, and SharePoint.
The Microsoft 365 admin center and PowerShell offer flexible methods to add single or multiple users, assign licenses, and configure settings as needed. These streamlined processes help the admins to manage the user accounts efficiently while maintaining compliance and security.

What are the Methods to Add User in Office 365?

There are 2 main approaches to adding users in Microsoft Office365:

  • Admin Center
  • Microsoft Graph Powershell

Add a User in Microsoft Office 365 Through the Admin Center:

To add users to Office 365, firstly we need to enter Microsoft credentials after that then we will proceed to the step-by-step process to add single and multiple users to Microsoft Office 365 through the admin center.

Add Single User:-

  1.  Open Microsoft Office365 and enter the credentials
  2. Navigate to admin and click on them

  • Now Go to users, then click on Active Users

  • Select Add a User option

  • Now type the user details to add to the organization.

  • Now assign the license according to your needs. Click on Next

  • Click on Next

  • Now, Click on Finish Adding

  • You will see, the user are added

  • To verify whether the user has been added or not, go to the search bar and search for the user by name.

 

To Add Multiple users :-

  • To add multiple users in Microsoft office 365, click on Add multiple user

  • Enter the user’s details like first name, last name and username for domain address.

  • Assign Licenses to the new users

  • Review the details and click on Add user button.

Add User in Office 365 Through the Microsoft Graph Powershell:

Before moving to add a user in Microsoft Office 365 Through the Microsoft Graph Powershell, first, we need to install the module and import it into powershell.

To Add Single User :-

1. Install the module and import to add the user through powershell

Install-Module -Name Microsoft.Graph -Scope CurrentUser
Import-Module Microsoft.Graph

2. Now move to authenticate the Graph through the below command

Connect-MgGraph

3. Let’s Create a user and password using below command

New-MgUser -DisplayName "James Parkar" ` -UserPrincipalName "[email protected]" ` -MailNickName "james" ` -GivenName "james" ` -Surname "parkar" ` -UsageLocation "IN" ` -PasswordProfile @{ Password = "Password@123"; ForceChangePasswordNextSignIn = $true } ` -AccountEnabled

Note: In the above command, if you do not provide the password for the user, then the computer autogenerate the password to the user.
4. To check the license whether the license is available or not run the below command :

Get-MgSubscribedSku

5. Now move to add the available license to the user:

Set-MgUserLicense -UserId "[email protected]" -AddLicenses @("")

Note: While doing this process make sure you do with carefully, if you skip any steps or make a mistake in the result it shows the errors.

To Add Multiple users :

To add multiple users in Microsoft Office 365 can also be done by using the PowerShell. But before adding, we need to create a .csv file where necessary details of users are included to add like:

  • UserPrincipalName:
  • FirstName:
  • LastName:.
  • DisplayName:
  • LicenseSKUId

1. Create a csv file for those users whom to add then save the file.

2. Now connect the powershell to the Microsoft office 365 by using the below command:

Connect-MgGraph -Scopes User.ReadWrite.All, Organization.Read.All

3. Now moving the part of adding the users and assign licenses through csv file, the below command will help us to know how to add users through powershell

# Import the CSV file
$users = Import-Csv -Path "D:\users.csv"

# Loop through each user in the CSV file
foreach ($user in $users) {

# Create a new user
$newUser = New-MgUser -UserPrincipalName $user.UserPrincipalName `
-DisplayName $user.DisplayName `
-GivenName $user.FirstName `
-Surname $user.LastName `
-JobTitle $user.JobTitle `
-Department $user.Department `
-AccountEnabled `
-MailNickname ($user.UserPrincipalName.Split('@')[0]) `
-PasswordProfile @{ForceChangePasswordNextSignIn = $true; Password = "TempPassword123!"}

# Set UsageLocation (required for license assignment)
Update-MgUser -UserId $newUser.Id -UsageLocation "IN"

# Assign a license to the new user
$e5Sku = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'DEVELOPERPACK_E5'
Set-MgUserLicense -UserId $newUser.Id -AddLicenses @{SkuId = $e5Sku.SkuId} -RemoveLicenses @()
}

Note: We have successfully added users to Microsoft Office 365, now we have to Assign Licenses to the users we have added. So that they can access and take advantage of Microsoft 365 services.

Conclusion

Providing access to onboard a new employee or granting access to external users is important for productivity or security. In this article, we have discussed how you can add a single user or multiple users in Microsoft Office365 via the admin center as well as using PowerShell. Using this step-by-step guide you can easily add user in office 365 but before adding the user make sure you have admin access or a global administrator role in Office 365.

About Manoj Dwivedi

Manoj Dwivedi is a seasoned Technical Content Analyst with over a decade of experience in the IT industry. He specializes in creating in-depth guides, tutorials, and analyses on cloud computing, data migration, and IT infrastructure. When he’s not writing, Manoj enjoys exploring the latest tech trends and engaging with the IT community through forums and social media.

Previous Post
Next Post

Leave a Reply

Your email address will not be published. Required fields are marked *