How to access calendar events using graph API

Deepak Parmar 0 Reputation points
2024-06-20T04:34:06.9233333+00:00

Hi, i have implemented graph api (https://graph.microsoft.com/v1.0/me) in angular .

this api provide correct result . but same way calling https://graph.microsoft.com/v1.0/me/events this provide errors like

{"error":{"code":"OrganizationFromTenantGuidNotFound","message":"The tenant for tenant guid
'ffcb7ed skip here' does not
exist.","innerError":{"oAuthEventOperationId":"aa0ad909-bef0-42d8-9fb9-d1504b8f6162","oAuthEventcV":"wEBPpttgVuq2LiRowSoliQ.1.1.1,
wEBPpttgVuq2LiRowSoliQ.1.1","errorUrl":"https://aka.ms/autherrors#error-InvalidTenant","requestId":"f2121d11-83b5-43ad-a6a6-f3776ce40e1e","date":"2024-06-20T04:17:30"}}}

Note: - Directory (tenant) ID is correct and calendars.read permission added.
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,404 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2024-06-20T04:34:06.93+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To access calendar events using Graph API, you can call the following endpoint: https://graph.microsoft.com/v1.0/me/events. This will return a list of events for the authenticated user.

    The error you are receiving indicates that the tenant for the provided tenant GUID does not exist. Please ensure that you are using a valid tenant GUID and that your application has the correct permissions to access calendar events.


    References:

    0 comments No comments