I want to execute the following query:
GET https://graph.microsoft.com/beta/groups/{id}/transitiveMembers/microsoft.graph.user?$count=true&$select=id
Is there a way to add this OData cast (microsoft.graph.user) to the query via c# sdk?
What I was able to do is:
GraphServiceClient.
Groups[{id}].
TransitiveMembers.
Request().
Select(member => new { member.Id }).
GetAsync();
Thanks,
Guy