Generic/Get-FGUserManager.ps1
function Get-FGUserManager { [alias("Get-UserManager")] [cmdletbinding()] Param ( [Alias("ObjectId")] [Parameter(Mandatory = $false)] [ValidateNotNullOrEmpty()] [string]$id ) $URI = 'https://graph.microsoft.com/beta/users/'+$id+'/manager' $ReturnValue = Invoke-FGGetRequest -URi $URI return $ReturnValue } |