Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between graph.windows.net and graph.microsoft.com?

I'm trying to access the users thumbnail photo with https://graph.windows.net/{teantId}/users/[email protected]/thumbnailPhoto?api-version=1.6 (from this question). I find nowhere in the graph api docs anything about graph.windows.net, but they tell me to go to https://graph.microsoft.com/v1.0/me/photo/ (This page). Can anyone tell me the difference between the two api's? The latter gives me "invalid audience" when I try to access it, so clearly there's a difference.

like image 286
roflcopter1101 Avatar asked Mar 15 '26 00:03

roflcopter1101


1 Answers

I've found out. graph.windows.net is the Azure AD graph, and graph.microsoft.com is the Microsoft graph. I'm trying to access the Azure AD graph, so I want to us graph.windows.net. That explains why my token had an invalid audience for graph.microsoft.com.

like image 196
roflcopter1101 Avatar answered Mar 17 '26 23:03

roflcopter1101



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!