Also facing the same issue. Still learning C# and the Microsoft Graph SDK, so any advice on this issue would be highly appreciated.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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://learn.microsoft.com/en-us/graph/api/user-list-transitivememberof?view=graph-rest-beta&tabs=http
Thanks,
Almog
Also facing the same issue. Still learning C# and the Microsoft Graph SDK, so any advice on this issue would be highly appreciated.
Any update here? I also have the same question....