14
Views
3
Comments
[Graph Email] Insufficient privileges to complete the operation.
Question
graph-email
Service icon
Forge asset by Miguel Meireles
Application Type
Service

Hi,

I'm getting this error while trying to get email headers:


System.Exception: One or more errors occurred.
Status Code: Forbidden
Microsoft.Graph.ServiceException: Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.
Inner error:
AdditionalData:
date: 2024-03-25T14:34:25
request-id: 7a72fb44-b952-4834-97d0-d9914c465e6d
client-request-id: 7a72fb44-b952-4834-97d0-d9914c465e6d
ClientRequestId: 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()

2024-04-05 03-05-03
Kharlo Ridado
2024-04-05 03-05-03
Kharlo Ridado

Hi @rowell codizal 

Any update or feedback on this topic? Were you able to solve the issue?

Regards,

Kharlo

UserImage.jpg
Alexandre Yip

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 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.