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 / Power automate flow do...
Power Automate
Unanswered

Power automate flow does not use credentials from logged in user

(0) ShareShare
ReportReport
Posted on by 39
kennethplatt_5-1702068438049.png

kennethplatt_6-1702068438055.png

 

Categories:
I have the same question (0)
  • Verified answer
    Anchov Profile Picture
    1,986 on at

    You will need to configure the Power Automate "Run Only Users" setting. This allows you to choose which Flow action is run under whose context.

    Anchov_0-1702074100283.png

    You will see a list of connections being used in your app. In your case, you will need to update the OneDrive Connector (possibly need to do this on multiple connections) to utilize "Provided by run-only user". This ensures that the user who initiated the flow from your Power App will use their own OneDrive connection.

    Anchov_1-1702074261017.png


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt

  • kennethplatt Profile Picture
    39 on at

    Thank you for your response. I did check that area and all my connectors that I wanted to use the running user's credentials were setup correctly based on the screenshot you provided. Turns out there are 2 connectors (Excel for Business & Excel for OneDrive). I was using Excel for Business and when I tried to use Excel for OneDrive it was blocked by a DLP (working on that). However, I was able to confirm that everything except that connector was using the users connection when authenticating. It still showed my name on the bottom of each step when I viewed the results, but I can confirm it was not me. I think this is just a bug in Power Automate that needs to be addressed.

     

    Example, a SQL connector was using the users credentials (via an connection ref) to authenticate to a server (which is what I expect). I was able to confirm this by having someone test this against a DB they don't have access to. The flow failed on that step as expected.

     

    Either way, your answer was probably exactly what you would do in this case (thumbs up), but my issue was likely due to a bit of a wild goose chase around the way the flow represents the results in the UI and a Connector to Excel that might be deprecated for OneDrive.

  • SABA365 Profile Picture
    20 on at
     
    Did you find a solution for your issue?
     
    I am building an app and a flow with same logic. My flow should create a new excel file in user's Onedrive folder and load data from SharePoint. And I encounter same issue. Flow fails at Create Table action and gives error "Action 'Create_table' failed. The request is forbidden by Graph API. Error code is 'accessDenied'. Error message is 'Access denied'".
     
    I verified Run only user settings, all connectors are configured as 'Provided by run-only user'.

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