Microsoft Graph API in Laravel Controller

前端 未结 3 463
抹茶落季
抹茶落季 2021-01-16 20:22

I am using organization Outlook account. My aim is to get List of Calendar Events in the Laravel controller. Steps I followed:

  1. Created simple application in

相关标签:
3条回答
  • 2021-01-16 21:04

    In your screenshot, it says that admin consent has not been given for the permissions you've set on the app registration (the "Not granted for..." status in the permission list). Because you're using client credentials, the application permissions (not the delegated permissions) are applied. Since admin consent has not been granted, your token has no actual permissions in it.

    You need a tenant admin to go to your app registration and grant admin consent.

    0 讨论(0)
  • 2021-01-16 21:04

    You have to give permissions Calendars.Read and Calendars.ReadWrite in both your application in azure dashboard and your api call code.

    Reference link: https://docs.microsoft.com/en-us/graph/permissions-reference and https://docs.microsoft.com/en-us/graph/api/calendar-list-events?view=graph-rest-1.0&tabs=http

    0 讨论(0)
  • 2021-01-16 21:08

    I feel it is about the Admin Permissions which needs to provided the app to access the API data Please refer this link - https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent

    0 讨论(0)
提交回复
热议问题