another way you can do is loop APs, identities and have logic in PS as
$apMatches=$ap.items | where - object {$_.entitlements -contains $entitlementId. I just written this on fly
loop it and map where entid found and get csv
another way you can do is loop APs, identities and have logic in PS as
$apMatches=$ap.items | where - object {$_.entitlements -contains $entitlementId. I just written this on fly
loop it and map where entid found and get csv