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