'Ado Api call fails for a specific API

I am trying to call this ADO API - https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/users/get?view=azure-devops-rest-6.0

I am azure SDK and have created a GraphHttpClient to make this call.

But this api always returns an exception - "Page not found". I am creating httpclients using this org url - https://{organization}.visualstudio.com/

I have also use BuildHttpClient and GitHttpClient for different purposes in the same file and they are working as expected. It's only this GraphHttpClient's API(Given in link above) throwing this exception. Any help will be appreciated. Thanks in advance.



Solution 1:[1]

The GraphHttpClient has been deprecated and should no longer be used.

It has been replaced with MSGraphClient.

For more information you can refer this document.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 RajkumarMamidiChettu-MT