作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试使用统一 API 获取所有组。使用此 URL - https://graph.microsoft.com/beta/myorganization/groups但收到 403 - 代码:“Authorization_RequestDenied”,消息:“没有足够的权限来完成操作”。
但是,似乎我确实拥有正确的权限 - 我的 token 范围内有 Group.Read.All,这是此 API 所需的 - 请参阅 here .
是否是因为我将 Office 365 统一 API 与已使用 graph.windows.net 的旧现有代码一起用作另一项服务(获取单独的访问 token )?
最佳答案
如果 token 具有 Groups.Read.All scp 声明,您应该能够获取结果。确保您获得正确资源资源的 token = https://graph.microsoft.com/ 。如果您不确定可以使用此工具 http://jwt.calebb.net/解析并验证您是否拥有正确的受众主张。
关于azure - 在 Office 365 统一 API "Get All Groups"上获取 Authorization_RequestDenied (403),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31117284/
我是一名优秀的程序员,十分优秀!