Using PowerShell

Additionally, you also have the ability to provision accounts with PowerShell, leveraging the Office 365 PowerShell module. To create user accounts in Office 365 PowerShell, you must specify values for a set of properties:

Property name

Required?

Description

DisplayName

Yes

The display name of the user

UserPrincipalName

Yes

The login name

FirstName

No

The first name of the user

LastName

No

The last name of the user

LicenseAssignment

No

The license plan for the user

To check which license plans are available in your tenant, you can use the Get-MsolAccountSku command.

For more information, see View licenses and services with Office 365 PowerShell at https://docs.microsoft.com/en-us/office365/enterprise/powershell/view-licenses-and-services-with-office-365-powershell ...

Get Office 365 Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.