"ErrorAccessDenied";使用Microsoft Graph API v1.0获取用户照片时

编程入门 行业动态 更新时间:2024-10-17 22:26:33
本文介绍了"ErrorAccessDenied";使用Microsoft Graph API v1.0获取用户照片时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当尝试使用Microsoft Graph API v1.0获取用户照片时,出现" ErrorAccessDenied ".我大约有200位用户,每10张用户照片中就有1张出现此错误(其他照片工作正常).

I'm getting an "ErrorAccessDenied" when attempting to get user photos with the Microsoft Graph API v1.0. I have approx 200 users, and I'm getting this error for around 1 in 10 user photos (the others work fine).

我可以通过以下方式获得用户个人资料信息:

I can get user profile info fine with:

graph.microsoft/v1.0/tenantID.onmicrosoft/users/someUserId/

但是对于某些用户,尝试获取照片:

But for some users, attempting to get a photo:

graph.microsoft/v1.0/tenantID.onmicrosoft/users/someUserId/photo graph.microsoft/v1.0/tenantID.onmicrosoft/users/someUserId/photo/$value

返回"ErrorAccessDenied":

returns "ErrorAccessDenied":

{ "error": { "code": "ErrorAccessDenied", "message": "Access is denied. Check credentials and try again.", "innerError": { "request-id": "ea95a205-23c1-4f3c-b8d5-6ab1dcff0a2e", "date": "2015-11-26T00:02:11" } } }

如果我切换回beta端点,效果很好,这只是v1.0上的一个问题.

It works fine if I switch back to the beta endpoint, it's only an issue on v1.0.

推荐答案

您的请求正确.由于某些用户的构建版本不正确,因此您正在获得一些错误.造成不便之处,敬请见谅,部署应在几天内完成.请注意,此问题已在发行说明中捕获: graph.microsoft.io/docs/概述/release_notes

Your requests are correct. You are getting errors on some users due to those users not having the right build with a fix that is rolling out. Apologies for the inconvenience, the deployment should complete in a few days. Note, this issue was captured in the release notes: graph.microsoft.io/docs/overview/release_notes

更多推荐

"ErrorAccessDenied";使用Microsoft Graph API v1.0获取用户照片时

本文发布于:2023-11-07 05:58:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565720.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:片时   用户   Microsoft   ErrorAccessDenied   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!