Hello Glenn Maxwell,
The difference you’re seeing is not unusual, Windows PowerShell cmdlets like Get-ADPrincipalGroupMembership are designed to resolve nested group memberships, whereas a basic LDAP query typically only returns the direct memberships unless you explicitly configure it to expand further.
On macOS, LDAP queries often have default constraints such as size limits (commonly 1000 entries), lack of paging support, or omission of attributes like memberOf expansion. This means you may only see a subset of groups unless you adjust the query to handle paging or use recursive logic to walk through nested groups.
I recommend checking whether your macOS LDAP client supports paged results and whether you can query for the tokenGroups attribute. tokenGroups is what Windows uses internally to resolve nested memberships, and it will give you a more complete picture. Keep in mind that not all LDAP tools on macOS expose this attribute by default.
Another useful test is to run the same query against the domain controller using a tool like ldapsearch with paging enabled, and compare results. If paging or recursion is missing, you’ll consistently see fewer groups.
I hope the response provided some helpful insight. If it clarified the issue for you, please consider marking it as Accept Answer so others with the same issue can find the solution. Feel free to repy if you need further information.
Jason.