Hello Graph support,
I want to execute the following query:
GET https://graph.microsoft.com/beta/users/{id}/transitiveMemberOf/microsoft.graph.group?$orderby=displayName&$select=displayName
Via SDK but I am unable to address the microsoft.graph.group path,
What I was able to do is:
var userTransitiveMemberOfCollection =
await graphServiceClient.
Users[aadUserId].
TransitiveMemberOf.
Request().
GetAsync();
In the query above I'm unable to select the displayName because the return type is directoryObject and it has only the id property.
I also would like to query in the same way the user's directoryRole names, if possible, query all user's directory role and group names in 1 query.
Is there a way to execute the API request via your C# SDK?
I took this query from the example:
https://docs.microsoft.com/en-us/graph/api/user-list-transitivememberof?view=graph-rest-beta&tabs=http
Thanks,
Almog

