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

Community site session details

Session Id :
Power Automate - General Discussion
Suggested answer

Onedrive Notification | 70% Drive size

(0) ShareShare
ReportReport
Posted on by 11
Hi,
 
I'd like to ask if anyone know about Onedrive notification when users usage is about 70% of total size? 
I have the same question (0)
  • David_MA Profile Picture
    12,580 Super User 2025 Season 2 on at
    Onedrive Notification | 70% Drive size
    Feel free to ask your question. Also, please share the notification you are getting. OneDrive should continue to work, but this will happen once it is full: My OneDrive says it's full - Microsoft Support. How does this relate to Power Automate BTW?
  • FS-18111847-0 Profile Picture
    11 on at
    Onedrive Notification | 70% Drive size
    IDK, GPT forwards me to setup power automate + microsoft graph integration. I dont think you got my question. So is there's a way to set up email notifications when a user's OneDrive storage reaches around 70% of their total quota? Like "email me when a user's Onedrive reaches 70%"
     
  • Suggested answer
    David_MA Profile Picture
    12,580 Super User 2025 Season 2 on at
    Onedrive Notification | 70% Drive size
    It certainly wasn't clear from your original post what was being asked (at least to me), but I think you're asking how to get a notification from Power Automate when your OneDrive capacity reaches 70 percent? If so, you can make this call to the Microsoft graph through an HTTP request: https://graph.microsoft.com/v1.0/me/drive
     
    It will return this information:
    Then it is just a matter of creating some expressions to calculate if you have 70 percent or less left in a condition. If so, send a notification.
     
     
  • FS-18111847-0 Profile Picture
    11 on at
    Onedrive Notification | 70% Drive size
    sorry, but i'm new to power automate. What connectors should I select when I configure them in Power Automate. 
  • FS-18111847-0 Profile Picture
    11 on at
    Onedrive Notification | 70% Drive size
    I'm having this error when I created the filtering array. I run it before the creation of filtering array and its good. After I created the filtering array and everytime I save it. It always appears. Any chance?
     
  • David_MA Profile Picture
    12,580 Super User 2025 Season 2 on at
    Onedrive Notification | 70% Drive size
    You would set the flow up like this:
    After you add the M365 HTTP request, run the flow before adding the Parse JSON action. Then copy the output from the run so you can use it to generate the JSON scheme from the sample data.
     
    The expression to calculate the percentage is: 
    div(mul(float(body('Parse_JSON')?['quota']?['used']), 100), float(body('Parse_JSON')?['quota']?['total']))
     
    The flow will return:
    That should give you enough to get started to do what you asked.
  • FS-18111847-0 Profile Picture
    11 on at
    Onedrive Notification | 70% Drive size
    thanks for this. I tried this and its working. added some of conditions. But it only focus in 1 account(me). Id' like to ask if for all users in the tenant or domain.
  • FS-18111847-0 Profile Picture
    11 on at
    Onedrive Notification | 70% Drive size
    Hi,

    question, currently it only handles the first 100 users due to API pagination, how can i make the response that will scan all users from the domain?

    This is my current work and its working fine except for my query above. 

  • David_MA Profile Picture
    12,580 Super User 2025 Season 2 on at
    Onedrive Notification | 70% Drive size
    You can refer to these references on how to handle the pagination: Handling Pagination with the MS Graph API in Logic Apps and Power Automate – William's IT Blog 🍉 and Paging Microsoft Graph data in your app - Microsoft Graph | Microsoft Learn. I only have one workflow that needs this, so it is not something I am expert on. 
     
    What Graph API call are you making to get this information on all users? I assume it is a call that requires admin access to the Graph API since you are accessing other users' OneDrive accounts.
     
    Don't forget to mark a response that answers your question.

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 438 Moderator

#3
chiaraalina Profile Picture

chiaraalina 258

Last 30 days Overall leaderboard