Version

0.0.1

Author

Ironman Software

Tags

azure microsoft graph scripts

Created

08/26/2024

Microsoft Graph User Scripts

This folder contains scripts that demonstrate how to use the Microsoft Graph to manage users in EntraID.

Pre-requisites

Adding a Script

These scripts can be added to PowerShell Universal using the Create Script From Command button on Automation \ Scripts. Select the Graph.Users.Scripts module and then the command you would like to add. You can then add it to the portal for users to execute.

Commands

New-PsuMgUser

This command creates a new user in EntraID using Microsoft Graph.

New-PsuMgUser -DisplayName "John Doe" -UserPrincipalName "[email protected]" -AccountEnabled

Installation Options

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet. More info

PS > Install-PSResource Graph.Users.Scripts

Install within the PowerShell Universal v5 admin console. More Info

PowerShell Universal Library

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies.

Download the raw nupkg file