Quite often I need to know whether a user is a member of a set of groups to which I am sending an email or which have permissions to a particular resource. The trick to check this is actually just to use
Get-QADMemberOf and supply the name of the user and the list of groups:
Get-QADMemberOf -Identity Maria -Name GroupA, GroupB -Indirect
This cmdlet will return the list of groups from the list to which the user belongs or nothing (
$null) if this account is not a member of any of them (including indirect membership). One of those simple tasks incredibly frustrating without PowerShell!