Skip to content

asarejohn001/ProvisionAccount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This is a subcode from my MicrosoftEntra_AzureAD respiratory.

Script to create user accounts

Using PowerShell 7 and the Microsoft Graph SDK, the UserAccountProvision script will create a user account in Microsoft Entra. It will

    1. Install Microsoft Graph. If you already have it installed, you can skip or comment it out.
  1. Import the Microsft Graph module.
  2. Define the permission scope you need to create the user accounts.
  3. Connect to Microsoft Grapgh.
  4. Saved the CSV file containing the new hire info into a variable.
  5. Declare a path to log any errors and success. This will help the investigation task.

Important

Make sure you change the path to where you saved your CSV file and created your Txt file for the logs.

  1. Create a variable to import the CSV file.
  2. Another variable to track errors so we can create a log file later.
  3. Loops through the csv file and create each user account using the information from the file.
  4. Disconnects from Microsoft Graph

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published