How to Fix?: Access is denied. Check credentials and try again.

宮澤 直行 20 Reputation points

I am trying to access /groups/{groupId}/calendar/events,
but I am receiving an error saying "Access is denied. Check credentials and try again."

I have granted the Group.ReadWrite.All permission. How can I fix this issue?

Please lend me your wisdom.

Microsoft Graph Groups API
Microsoft Graph Groups API
A Microsoft API that creates and manages different types of groups and group functionality.
204 questions
Microsoft Graph Calendar API
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 23,686 Reputation points

    Hi @宮澤 直行

    Group calendars do not support application permissions, so you cannot call this endpoint in an application context.

    You need to grant the Group.ReadWrite.All delegated permission to the application and grant administrator consent, then use a delegated authentication flow to obtain an access token, such as auth code flow or ROPC flow.

    User's image

    Call this API endpoint:

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. TH-4749 945 Reputation points

    Hi 宮澤 直行,

    Thanks for reaching out. If using client credentials, ensure that the Group.ReadWrite.All is granted to Application Permissions in Azure via the API permissions page for your application. In the client credential flow, there won't be any user authentication, so delegated permissions won't work.


    1 person found this answer helpful.
    0 comments No comments