Access is denied. Check credentials and try again. Group Events with Application Token

AshB 20 Reputation points
2024-07-04T10:59:03.9766667+00:00

I'm getting the following error (Access is denied. Check credentials and try again) when try to execute the following with an application token

https://graph.microsoft.com/v1.0/groups/{omitted}/events?$expand=singleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name {omitted}')

The above executes without any issue when using the delegated token. Checked both tokens using https://jwt.io/

and it has Calendars.ReadWrite, also tried with Calendars.Read and still the same issue.

Any pointers would be much appreciated. Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,254 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yakun Huang-MSFT 6,415 Reputation points Microsoft Vendor
    2024-07-05T01:36:28.93+00:00

    Hi @AshB

    According to the Graph API, this endpoint does not support application permissions and personal accounts, only delegation permissions.

    User's image

    See this link for more details:

    https://learn.microsoft.com/en-us/graph/api/group-list-events?view=graph-rest-1.0&tabs=http

    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. AshB 20 Reputation points
    2024-07-05T05:54:25.2133333+00:00

    That's embarrassing, I must of been looking at the wrong documentation. Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.