Public/Get-PegasusAdminPerson.ps1
<# .SYNOPSIS Connects to the Microsoft Graph and reads all users. Useful for joining. .EXAMPLE Get-PegasusAdminPerson -Id "d788afcc-896b-42c7-abf2-37bb24a2150d" #> function Get-PegasusAdminPerson { [CmdletBinding()] Param ( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] [ValidateNotNullOrEmpty()] [string]$Id ) Process { Invoke-PegasusRequest -Endpoint "/admin/persons/$($Id)" | ForEach-Object { $_ } } } |