
Announcements
We have developed a Power App that includes a "Sync Files" button. This button triggers a Power Automate flow designed to move files from the triggering user's OneDrive for Business account to a designated SharePoint document library.
The flow has been configured with run-only permissions and utilizes connection references. Specifically, the OneDrive for Business connector within the flow is set to "Provided by run-only user."
We are getting an error Resource Not found when other user is triggering the flow as it is using the Other user connections..
For Example : The Flow Created using Service ID and when the flow is triggered it works perfectly and move the files from Onedrive to sharepoint, I have enabled Run only user access to a User 1, When User 1 access the Power app and trigger the flow getting an error " Resource not found".
I have shared User1 Onedrive folder access to Service ID... same issue
Issue:
When users other than the flow creator trigger the flow via the Power App, the flow fails to access their respective OneDrive files. Instead, it attempts to access the OneDrive account associated with the flow creator's connection. This behavior persists despite the connection reference being set to use the run-only user's context.
Steps Taken:
Verified that the OneDrive for Business connector is set to "Provided by run-only user."
Ensured that all users have appropriate permissions and valid OneDrive for Business accounts.
Tested the flow with multiple user accounts, all experiencing the same issue
Expected Behavior:
When a user triggers the flow via the Power App, the flow should execute under that user's context, accessing their individual OneDrive for Business files and moving them to the specified SharePoint library.
Actual Behavior:
The flow executes using the flow creator's OneDrive connection, attempting to access files from the creator's OneDrive account, leading to failures when other users trigger the flow.