Generic/Get-FGObject.ps1
function Get-FGObject { [alias("Get-Object")] [cmdletbinding()] Param ( [Alias("ObjectId")] [Parameter(Mandatory = $true)] [string]$Id ) $URI = "https://graph.microsoft.com/beta/directoryObjects/$id" $ReturnValue = Invoke-FGGetRequest -URi $URI return $ReturnValue } |