cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AnaLo
Regular Visitor

"code": "ErrorSendAsDenied"

Hi, 

I made a flow (shared a flow with another user) in which it is sent an email using: 

  • From (send by): User email

However, when that person runs the flow, we get the following error: 

  • "code": "ErrorSendAsDenied"
  •   "originalMessage": "The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message."

 

Getting User MailGetting User MailSetting the Email ("From...")Setting the Email ("From...")

How could I solve it?

 

Thanks for the support

2 REPLIES 2
jinivthakkar
Super User
Super User

@AnaLo you need to delegate permissions 

 

Check this out : 

https://www.nucleustechnologies.com/blog/how-to-grant-permissions-to-other-office-365-mailboxes/

 

Check steps in Assigning Permissions to User Mailboxes through Exchange Admin Center  

 

The flow owner email ID should have permissions to send emails on behalf of shared mailbox.

 

Hope this helps.

 

Please like and accept solution.

Hi, I'm having a similar issue.

 

I've assigned myself as a delegate of the shared mailbox (I'm the office 365 global admin), however, I'm still seeing the same error when I run my (very simple) power apps flow.

 

You are not authorized to send mail on behalf of the specified sending account.
clientRequestId: 24c926c4-6fe2-4b4c-94f5-b9f66ce3a02a
serviceRequestId: fd562202-c87e-15e3-d4f2-4cfb5ece4428

 

Above is the error I see

 

paulnewsom_0-1634115843455.png

 

Above is the delegates section of the shared mailbox, as you can see, I am a delegate. 

 

Anyone got any ideas?

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,728)