I've noticed a strange situation that seems like a bug. I'm querying all groups with members expanded:
https://graph.microsoft.com/v1.0/groups?$select=id,displayName&$top=999&$expand=members
and all groups with transitive members expanded:
https://graph.microsoft.com/v1.0/groups?$select=id,displayName&$top=999&$expand=transitiveMembers
However, both queries return the same results. In the second case, the 'transitiveMembers' collection is actually just members, not transitive members.
I further confirmed this by explicitly querying for transitive members in each group individually, and this correctly returns the transitive members:
https://graph.microsoft.com/v1.0/groups/<group.id>/transitiveMembers
Is this expected behavior or a bug? Is there a different way to properly return all groups with transitive members?
Thanks,
-Justin