我试图用https://graph.windows.net/{teantId}/users/user1@xxx.onmicrosoft.com/thumbnailPhoto?api-version=1.6 (从这个问题)访问用户的缩略图。我在图形api中找不到任何关于graph.windows.net的文档,但是他们告诉我去https://graph.microsoft.com/v1.0/me/photo/ (此页)。有人能告诉我这两个api的区别吗?当我试图访问它时,后者给了我“无效的观众”,所以很明显,这是有区别的。
https://graph.windows.net/{teantId}/users/user1@xxx.onmicrosoft.com/thumbnailPhoto?api-version=1.6
graph.windows.net
https://graph.microsoft.com/v1.0/me/photo/
发布于 2020-06-22 13:03:09
我发现了。graph.windows.net是Azure AD图,graph.microsoft.com是Microsoft图。我试图访问Azure广告图,所以我想让我们graph.windows.net。这就解释了为什么我的令牌有一个用于invalid audience的graph.microsoft.com。
graph.microsoft.com
invalid audience
https://stackoverflow.com/questions/62513980
相似问题