Notice the () at the end of the user id. This request results in 404 of course, because it's not a valid GUID.
What's event worse is that the library can't handle it, task never finishes.
Sorry for the issue here. This is a known issue with how we generate the client library. We'll try and get this fixed in the next version of the client library.
This is ridiculous, library literally can't do anything I need from it.
I need to get 1 user's properties including his memberOf array. My code:
var currentUser = client.Users.GetByObjectId(currentUserObjectId).Expand(x => x.MemberOf).ExecuteAsync().Result;
First of all, this code makes a request like this one:
https://graph.windows.net/TENANTID/users/a7669d7c-2320-4d16-a0e8-b0b414b3a7bf()?$expand=memberOf&api-version=1.6
Notice the () at the end of the user id. This request results in 404 of course, because it's not a valid GUID. What's event worse is that the library can't handle it, task never finishes.