Skip to main content

Notifications

Community site session details

Community site session details

Session Id : UAliKE/myNdWOuode2ZWlN
Power Automate - General Discussion
Unanswered

"code": "ErrorSendAsDenied"

Like (0) ShareShare
ReportReport
Posted on 19 Jan 2021 18:48:06 by

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

  • Mendoza Profile Picture
    2 on 10 Apr 2023 at 15:29:35
    Re: "code": "ErrorSendAsDenied"

    I had a similar error when running an approval flow. The solution was to change in "Manage execution-only permissions" in the connections used to change it in the mail area, to use the user connection of "only execution" because if the connection of the owner of the flow is taken care of, the error presents me again.

     

    Trate de explicarlo lo mejor posible en ingles ya que no es mi idioma natal pero, espero que les funcione.

     

    request.PNG

  • Community Power Platform Member Profile Picture
    on 03 Nov 2022 at 01:26:31
    Re: "code": "ErrorSendAsDenied"

    hi @paulnewsom 

     

    look this:

    https://www.youtube.com/watch?v=Mhr1iqSXf0s

     

  • Community Power Platform Member Profile Picture
    on 03 Nov 2022 at 01:13:17
    Re: "code": "ErrorSendAsDenied"

    Hi @VikG 

     

    Here I have a problem that is presented in your solution.
    Why would it have to be enabled for each mailbox and if the organization has many users?.

     

    https://powerusers.microsoft.com/t5/General-Power-Automate/The-specified-object-was-not-found-in-the-store-when-trying-to/m-p/1756913

     

    I waiting for your comments

     

    Thanks

  • SPBoston Profile Picture
    12 on 16 May 2022 at 16:00:25
    Re: "code": "ErrorSendAsDenied"

     Hey @VikG It's still not working for me 

    Anyway you can post your working flow so I can recheck with mine ? Thanks 

  • VikG Profile Picture
    6 on 21 Apr 2022 at 17:14:18
    Re: "code": "ErrorSendAsDenied"

    Just to clarify, i was using the wrong Action. I needed to use the Send an email from a shared mailbox 

  • VikG Profile Picture
    6 on 21 Apr 2022 at 17:04:49
    Re: "code": "ErrorSendAsDenied"

    Did you find a solution to this? I'm seeing the same issue. I have delegated permissions to send as a shared mailbox, but still, I get the same error:

     

    "You are not authorized to send mail on behalf of the specified sending account.
    clientRequestId: ef205690-579a-495c-aa77-e5bce9e2d6f4
    serviceRequestId: 69a98d97-c82d-6fc2-5e73-3e31f4d4508c"

  • paulnewsom Profile Picture
    2 on 13 Oct 2021 at 09:04:33
    Re: "code": "ErrorSendAsDenied"

    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?

  • jinivthakkar Profile Picture
    4,179 on 20 Jan 2021 at 07:41:08
    Re: "code": "ErrorSendAsDenied"

    @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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started