Create calendar event using Microsoft Graph: ErrorAccessDenied

浪尽此生 提交于 2019-12-07 15:58:30

What helped me greatly is inspecting the token with a JWT inspecting website, like JWT.ms. This website will explain all the details to you about the token (it is build by Microsoft, the token only gets parsed by javascript and isn't transmitted). This website also has a Claims tab, where they explain all the claims in the token.

You're talking about application permissions, that requires an extra step. It also has to be consented by an Azure AD Administrator for the directory you want to access.

You can build this into the sign-in flow, but the easiest way is through the Azure Portal.

  1. Go to https://portal.azure.com -> Azure Active Directory -> [AD Name] - App registrations
  2. Find the app you want to grant access to.
  3. Click Settings
  4. Click Required Permissions
  5. Click Grant Permissions

What this does is creating an application account in your tenant, with the permissions you requested.

After these steps you should create a new token and compare it to the token you got the first time, and you should be able to see the changes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!