Azure-Samples / active-directory-dotnet-graphapi-web

A .NET 4.5 MVC web app that demonstrates how to query the Azure AD Graph API using the Azure AD Graph Client Library
82 stars 68 forks source link

IUserFetcher.MemberOf.ExecuteAsync() is broken in Active Directory Client Library 2.0.8 #24

Open astaykov opened 9 years ago

astaykov commented 9 years ago

Hi there, I just want to report a blocker issue in IUserFetcher implementation in MemberOf.ExecuteAsync method. It incorrectly refers to irectoryObjects path instead of directoryObjects and generates the following sample, but broken REST call:

GET https://graph.windows.net/tenant.domain.com/irectoryObjects/445b0662-8e08-4345-a4d2-bf59850d1802/memberOf?api-version=1.5 HTTP/1.1 DataServiceVersion: 1.0;NetFx MaxDataServiceVersion: 3.0;NetFx Accept: application/json;odata=minimalmetadata Accept-Charset: UTF-8 DataServiceUrlConventions: KeyAsSegment User-Agent: Microsoft Azure Graph Client Library 2.0.8 Authorization: Bearer xxx X-ClientService-ClientTag: Office 365 API Tools 1.1.0612 Host: graph.windows.net

2masbaali commented 9 years ago

When I Run Admin code I see "HTTP Error 500.0 - Internal Server Error". how can I solve it?

dkershaw10 commented 8 years ago

Can you check if it repros with 2.1.0? I'm not able to repro this with 2.1.0. We may have introduced a regression with 2.0.8.

lmenzel commented 6 years ago

If someone comes across that problem, check that you specify the graph api url without a trailing slash. Using https://graph.windows.net instead of https://graph.windows.net/ helped for me. (Using version 2.1.1)