Hi admin
According to the documentation:
There are two scenarios where an app can get events in another user's calendar:
- If the app has application permissions, or,
- If the app has the appropriate delegated permissions from one user, and another user has shared a calendar with that user, or, has given delegated access to that user. See details and an example.
So, if you are using auth code flow to access other users' calendar events, make sure that the logged-in user has shared the calendar with the target user, or that the target user has granted delegated access to the logged-in user.
If your users do not meet the above criteria, you must use the daemon-based client credentials flow to access other users' calendar events. Also, the client credentials flow cannot yet be combined with the authentication code flow.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".