web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unauthorized when send...
Power Automate
Unanswered

Unauthorized when sending from a shared inbox

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a flow that works in conjunction with powerapps. The user in powerapps supplies several key inputs which are transferred over to the flow. On the last step an email is sent from a shared inbox. When users who are not myself trigger the flow, the flow fails at the send email function with the error. If I trigger it, it works fine. I think this is due to a permissions error. Is there anyway around this?

 

Error from token exchange: Runtime call was blocked because connection has error status: Enabled| Error, and office365 is in the block list. Connection errors: [ParameterName: token, Error: Code: Unauthorized, Message: 'Failed to refresh access token for service: aadcertificate. Correlation Id=b8db4bdd-60f8-4baf-aa03-ff9514884a9a, UTC TimeStamp=9/16/2022 10:09:03 PM, Error: Failed to acquire token from AAD: {"error":"invalid_grant","error_description":"AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2022-06-16T00:43:50.2117454Z and was inactive for 90.00:00:00.\r\nTrace ID: 81abaaf4-2c67-477b-8238-0372ec992500\r\nCorrelation ID: 9964574d-2c06-4812-8388-2c308fe7ff70\r\nTimestamp: 2022-09-16 22:09:03Z","error_codes":[700082],"timestamp":"2022-09-16 22:09:03Z","trace_id":"81abaaf4-2c67-477b-8238-0372ec992500","correlation_id":"9964574d-2c06-4812-8388-2c308fe7ff70","error_uri":"https://login.windows.net/error?code=700082"}']

 

Categories:
I have the same question (0)
  • Muralidharan Profile Picture
    340 on at

    @shuhn1229 

    Use a dedicated service account to send emails rather than associated with a person account. 

    Please let me know , do you want to use the From address should be generic one(service account like app-name@company.com) or the currently logged user should be the sender yourname@companyname.com ?

     

    Thanks,

    Murali. 

     

     

  • David- Profile Picture
    1,254 on at

    In your flow, edit the run only users. Then look for the credentials for Outlook.

    Web capture_17-9-2022_141424_make.powerautomate.com.jpeg

    Change it from Provided by run-only user to use this connection with your credentials. In this button flow, it gets all the groups the person who runs the flow is an owner of, which is why the Office 365 Groups action runs under the user's credentials. I send the e-mail with the list using a service account I can send from.

  • shuhn1229 Profile Picture
    on at

    Hi,

     

    I don't see any dropdown options when editing the connections.

     

    error21.PNG

     

    Steve

  • David- Profile Picture
    1,254 on at

    Based on what you said about users triggering the flow, I assumed your flow is a button flow. What is your trigger condition?

  • shuhn1229 Profile Picture
    on at

    It is a button in powerapps.

     

    Thanks

    Steve

  • David- Profile Picture
    1,254 on at

    I don't use Power Apps, so I am guessing a button in Power Apps is not the same as an instant cloud flow (button flow). If that is the case, you may not be able to change the settings. 

  • shuhn1229 Profile Picture
    on at

    I just checked  - it is instant.

     

    Is it possible my org has restricted settings changes?

     

    Steve

  • David- Profile Picture
    1,254 on at

    I don't think it is possible. However, Microsoft's documentation states that to share an instant cloud flow you must be the creator or owner and you must have a Power Automate license (except the free license) or a seeded license: Learn how to share a cloud flow with other users - Power Automate | Microsoft Learn

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard