We have a case where we are trying to fetch the calendar events using the getSchedule api, where we are using the client credentials flow and given the access policy to the mail-enabled security group with the user in the shared maill box

qa.interviewer1 5 Reputation points
2024-04-23T07:07:17.8433333+00:00

we are trying to use the client credentials flow token to fetch the free busy events of the users

so we have given the application access policy to the mail-enabled security group with a single-user email which is a shared email

so when we try fetching the events we get the below response from the graph API

{"error":{"code":"ErrorAccessDenied","message":"Access to OData is disabled."}

but when we have given direct access policy to the user mail enabled email address
we can fetch the free busy data

can someone please help with this

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,956 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
872 questions
0 comments No comments
{count} votes

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.