Update storage limit site

How to update the storage limit (and warning) level of a SharePoint Online site collection using a Power Automate flow.

URI

Headers

Body

Screenshot with example

Sample data
Site Address (Admin Centre Url) – https://contoso-admin.sharepoint.com
SiteId – 6ea2c231-eb96-46bf-b815-3bc10a40dd9b
MBs – 2048
WarningMBS – 2007

updatestoragelimitsite

Copy/paste example

Resources

SiteProperties.StorageMaximumLevel property
SiteProperties.StorageWarningLevel property

That’s it, Happy testing!

You may also like...

4 Responses

  1. Chris Anderson says:

    interesting. i might need to play about with this and see if I can use this to perform some automation on increasing storage quota of sharepoint sites and teams sites.

  2. Dennis says:

    If you have any follow-up questions Chris let me know 🙂

  3. Ketan says:

    Thanks Dennis

    I played around using the above API in my flow but keep getting below error the account that makes API call is a global admin

    status”: 403,
    “message”: “{\”odata.error\”:{\”code\”:\”-2147024891, System.UnauthorizedAccessException\”,\”message\”:{\”lang\”:\”en-US\”,\”value\”:\”Attempted to perform an unauthorized operation.\”}}}\r\nclientRequestId: d54fd13c-a3fb-47e6-bb9b-8d8918e4e7b1\r\nserviceRequestId: 933a29a1-40f1-5000-7242-ea1571e75114″,

  4. Dennis says:

    Hi Ketan,

    A couple of questions:
    – Are you able to access the SharePoint Admin centre site and did you use that URL in the Site Address field?
    – Did you double check you used the correct Site Id?
    – Which value did you use for the MBs and WarningMBs? (the WarningMbs value needs to be lower than the MBs)
    – Did you use the same Method and Headers as in the example?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.