尽管App具有File.Read权限,但对https://graph.microsoft.com/beta/me/trendingAround的调用返回"403 Forbidden" .
我查了http://graph.microsoft.io/en-us/docs/authorization/permission_scopes并没有找到任何更合适的特权 . 我甚至试图在 dev.office.com/app-registration 上列出所有权限,但响应是一样的 .
对 graph.microsoft.com/beta/me/people 的调用有效 .
如果我在 graph.microsoft.io/en-us/graph-explorer 上尝试使用trendingAround API,它也可以,但不在App中 .
1 回答
List trendingAround API需要 Sites.Read.All 权限,该权限不在https://dev.office.com/app-registration中列出 . 您需要在Azure Active Directory中分配此权限 .
找到您注册的应用程序或注册一个新应用程序 .
Microsoft Graph>委派权限>读取所有网站集中的项目 .
有关详细信息,请查看文档Manually register your app with Azure AD so it can access Office 365 APIs