php 即使有正确的权限,MS Graph也一直说“权限不足”

06odsfpq  于 11个月前  发布在  PHP
关注(0)|答案(1)|浏览(57)

我试图使用PHP向MS的图形API发出POST请求。在我的Azure注册应用程序中,我添加了Calendars.ReadWrite类型的权限application
当我到达终点时:https://graph.microsoft.com/beta/users/xx@xx.xx/calandars
我得到一个403,并显示消息“权限不足,无法完成操作”。
我不明白为什么会这样...我还添加(并删除)了Calandar.ReadBasic.All,但这并没有改变什么。
我在这里做错了什么,因为文档明确指出,当为其他用户访问端点时,令牌必须是应用程序类型。

rn0zuynd

rn0zuynd1#

端点URL是否正确?
不是应该是https://graph.microsoft.com/beta/users/xx@xx.xx/calendars而不是https://graph.microsoft.com/beta/users/xx@xx.xx/calandars吗?

相关问题