July 2017
Beginner
222 pages
5h 2m
English
To create multiple users, assign licenses to multiple users, or do both at the same time, we can use data stored in a CSV file, text file, or even a SharePoint list.
In the following example, we will cover bulk user creation using a CSV file.
As mentioned previously, to create a new user the mandatory parameters are userprincipalname and DisplayName.
The CSV will need to be in the following format:
To implement this, we will need to connect to the Office 365 service first and import the input file; the next step is to store the info in variables, and the last step is to create the users in Office 365:
$users = Import-CSV ...
Read now
Unlock full access