邮递员和 GraphAPI/me/onlineMeetings 错误 403 [英] postman and GraphAPI /me/onlineMeetings error 403

查看:28
本文介绍了邮递员和 GraphAPI/me/onlineMeetings 错误 403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用 PostMan 测试 API

添加OnlineMeetings.ReadWrite 权限后,不要忘记授予管理员同意.

3. 现在您需要在您的邮递员中再次获取用户访问令牌,请在您的邮递员中单击获取用户访问令牌".您可以通过将访问令牌复制到此

4. 然后你可以在你的邮递员中测试这个api(下面我提供了一个创建在线会议的例子供你参考).

I need to test with PostMan the API https://docs.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=http

But always return 403...

{
  "error": {
    "code": "Forbidden",
    "message": "",
    "innerError": {
      "request-id": "76cf26ec-0be3-4b51-a8a8-5c70d71e426c",
      "date": "2020-05-25T15:38:50"
    }
  }
}

I have follow this articole to setup postman microsoft article and all work very well, except this API, and I don't understand why

解决方案

For this problem, it was caused by the app doesn't have permission to create online meeting. When you click the "Get User Access token" in your postman, it will get the access token which includes the permissions you added to the app before. If you want to test the create online meeting api, you need to go to azure portal and add appropriate permissions for it. Please refer to the steps below:

1. Go to azure portal and click "Azure Active Directory" --> "App registrations" --> "All applications". Search the app by the ClientID which you set in your postman for the graph environment.

2. In you registration app, click "API permissions" and add the OnlineMeetings.ReadWrite permission for it.

After add the OnlineMeetings.ReadWrite permission, don't forget grant admin consent for it.

3. Now you need to get the user access token again in your postman, please click "Get User Access Token" in your postman. You can check the permissions by copy the access token to this page, it will parse the access token and you can check if the token contains the OnlineMeetings.ReadWrite permission.(As add the permission to access token requires a few minutes, so you'd better parse the access token to check if it contains the permission)

4. Then you can test this api in your postman (below I provide a create online meeting sample for your reference).

这篇关于邮递员和 GraphAPI/me/onlineMeetings 错误 403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆