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 / Using Flow to get OneD...
Power Automate
Unanswered

Using Flow to get OneDrive files via Graph

(0) ShareShare
ReportReport
Posted on by 91

I am attempting to use a Power App to call a flow to get their own One Drive files via Graph API.

 

  • We have the Graph API registered as an application.
  • I can use Flow to call Graph and get groups, users, tenant SKUs, etc via the same method without issue.
  • I can use Graph Explorer to do this without any issues.
  • For "Me" I have passed both my GUID and UPN/Email with the same results
  • Result is always a 403. Wondering if this is an app registration security issue? You can view the current permissions in the image below:
    2019-12-13_10-10-32.png

2019-12-13_10-03-29.png2019-12-13_10-05-06.png

 

 

 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

     

    Hi @Hayes3d ,

     

    It seems that your permissions are satisfactory, and you have passed the Graph Explorer test.

    From your configuration, it may be that the PowerApps button you use as a trigger has caused such problems.

     

    When using the PowerApps button as a trigger, the context will change. The user info obtained in the Flow is the user who triggered the Flow(the user who clicks the PowerApps button), so the user info here changes dynamically. Maybe the current user does not have sufficient permissions to obtain the file.

     

    Please check this similar thread:

    https://powerusers.microsoft.com/t5/General-Power-Automate/Breaking-access-role-inheritance-error-with-access-denied/td-p/315972

     

    You can try to use the Manual button as a trigger first, and then configure the fixed credentials in the HTTP action to see if similar issues still exist.

     

    Best Regards,

  • Hayes3d Profile Picture
    91 on at

    Sorry I should have specified how I triggered it. I can manually put in my own OneDrive, which both my onmicrosoft admin acct and regular account have access, and then trigger it through a test or from PowerApps and I get the same error either way. I tested with 2 separate sessions and both have access to my OneDrive through the browser. Both worked using Graph Explorer. Just not working from Flow. But if I get rid of the "drive/root/children" the flow works just fine to get my info. So I know everything should be setup correctly.

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard