Could not find a property named 'userPrincipalName' on type 'Microsoft.DirectoryServices.DirectoryObject'
What causes it and how to fix it:
- directoryObject collections reject $select of user fields — and $top is a separate, per-endpoint trapUser fields on /members//transitiveMembers = 400; OData cast cures $select everywhere, $top stays per-endpoint (probe both)Cause and fix →