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 / Issue with OneDrive fo...
Power Automate
Unanswered

Issue with OneDrive for Business Actions in Power Automate Flow Triggered by different users

(0) ShareShare
ReportReport
Posted on by

Hello Power Automate Community,

I'm encountering an issue with a flow that's triggered by a Power Apps, where any OneDrive for Business action fails when triggered by users other than myself. I'm reaching out for insights or possible solutions from the community.

 

Issue Description

The flow works flawlessly when I, the creator, trigger it from Power Apps. However, when other users initiate the flow, actions such as "Get file metadata" and other OneDrive for Business actions result in "Forbidden" or "Access denied" errors. This suggests a permissions' problem, but it's unexpected because the actions are set to use a specific connection that should not be affected by the user triggering the flow.

For example, here is the same action for 2 runs :

 

The action when another user triggers the flow from Power Apps

2023-12-19 13_33_12-Berrycast - Free Screen Recorder & Sharing Tool.png

 

When the flow is trigger by me using Power Apps (with the same parameters) : 

2023-12-19 13_37_00-Microsoft Power Automate and 11 more pages - ABF - Microsoft​ Edge Dev.png

 

Troubleshooting Done:

  • Confirmed that the OneDrive for Business actions are using the correct connection with appropriate permissions.
  • Ensured that the connection used for this action have write/read access to the necessary files on OneDrive.
  • Double-checked that no user-specific contexts are altering the flow's execution.

 

Questions:

  1. Are OneDrive for Business actions in Power Automate flows supposed to run with the connection's credentials rather than the credentials of the user who triggers the flow?
  2. Is there a setting that I might have overlooked which causes the flow to use the triggering user's context?
  3. Has anyone else experienced similar issues with OneDrive for Business actions in Power Automate and found a resolution?

Your assistance or suggestions would be immensely helpful. I'm happy to provide further details if needed.

Thank you for your time and help!

 

Best regards,

Nicolas

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    1. When you trigger a flow from Power Apps it runs in the security context of the person who triggered it. So no in that case it won't run with the connection credentials.

    2. That is the default setting. If you build the flow and the app in a solution there is a setting on the flow called Run Only User which will let you change the connection to run with the maker's connection, not the security of the person triggering the flow.

    3. See #2. This is the way it operates by default.  Using the steps in #2 you can change it.

  • OpenMindt_abf Profile Picture
    on at

    Thank you so much for the quick response, I didn't know about this security logics!
    So either all users using the Power Apps should have permission for those OneDrive folders/files, or the Power App and Power Automate need to be put in a Solution and use the "Run Only User" settings to run with the maker's connection. 
    I will try to use a solution immediately!
    Thank you again!

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Giving the users permission to the OneDrive folder and contents should also work.  But the Solution is the better choice since that becomes important if you want to move the app and flow to a different environment also.

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard