Hi,
I'm getting this error while trying to get email headers:
System.Exception: One or more errors occurred.Status Code: ForbiddenMicrosoft.Graph.ServiceException: Code: Authorization_RequestDeniedMessage: Insufficient privileges to complete the operation.Inner error:AdditionalData:date: 2024-03-25T14:34:25request-id: 7a72fb44-b952-4834-97d0-d9914c465e6dclient-request-id: 7a72fb44-b952-4834-97d0-d9914c465e6dClientRequestId: 7a72fb44-b952-4834-97d0-d9914c465e6d at Microsoft.Graph.HttpProvider.<SendAsync>d__18.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Graph.BaseRequest.<SendRequestAsync>d__40.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Graph.BaseRequest.<SendAsync>d__34`1.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Graph.GraphServiceUsersCollectionRequest.<GetAsync>d__3.MoveNext()
Hi Rowell,
Have you check this post? https://stackoverflow.com/questions/44323560/graph-api-insufficient-privileges-to-complete-the-operation
See if it helps. :)
Hi @rowell codizal
Any update or feedback on this topic? Were you able to solve the issue?
Regards,
Kharlo
Hi rowell codizal,
Check out here the permissions section, it details the needed grants to be given on Azure.
https://learn.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http
here you can check the steps needed to configure it
https://itnext.io/getting-started-with-outsystems-and-microsoft-graph-123006356d41
Hope that it helps you