How do I increase directory object quota limits to prevent issues with creating Groups?

Bryan Bates 5 Reputation points
2024-07-02T21:29:03.4166667+00:00

I have a service account that creates M365 Groups to go with small projects. It does this through Power Automate with a POST request to the Graph API. Recently the flow started experiencing intermittent errors with the following message: "The directory object quota limit for the Principal has been exceeded. Please ask your administrator to increase the quota limit or delete objects to reduce the used quota."

Through some searching, I see that a limit of 250 Groups applies to non-admin users. This service account has admin privileges and has already created close to 2000 Groups. How can make sure this service account is operating within quota limits and/or increase those so they are no longer an issue?

TIA,

Bryan

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,149 questions
Microsoft Entra
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. akinbade abiola 6,970 Reputation points
    2024-07-02T22:23:53.2033333+00:00

    Hello Bryan,

    Thanks for your question.

    To address this, you can consider implementing group lifecycle to remove inactive groups after a set time. This will help ensure that you have up to date groupings based on usage

    See.

    https://video2.skills-academy.com/en-us/entra/identity/users/groups-lifecycle

    If you want to raise the limit or quota above the default limit, you will need to open a support request. See:

    https://video2.skills-academy.com/en-us/azure/quotas/quickstart-increase-quota-portal

    Regards,

    Abiola

    0 comments No comments

  2. Givary-MSFT 30,251 Reputation points Microsoft Employee
    2024-07-03T03:51:41.3233333+00:00

    @Bryan Bates Thank you for reaching out to us, seems you have hit the default quota limit and assuming you have reviewed this doc - https://video2.skills-academy.com/en-us/entra/identity/users/directory-service-limits-restrictions would request you to contact our support team for further assistance in increasing the default quota.

    Let me know if you have any further questions, feel free to post back. If in case you dont have a support contract reach out to us via private message sharing your Azure Subscription ID where we can help with the support options.

    0 comments No comments

  3. Neuvi Jiang 545 Reputation points Microsoft Vendor
    2024-07-03T07:57:11.9566667+00:00

    Hi Bryan Bates,

    Thank you for posting in the Q&A Forums.

    First, you need to confirm that the service account does have administrator privileges and understand the specific quota limits in Microsoft 365 (M365) for group creation. Typically, Microsoft sets different quota limits based on different subscription plans and license types. Admins can view and modify these restrictions through the Microsoft 365 admin center.

    If your service account has created nearly 2,000 groups and the standard quota limit is much lower than that, cleaning up groups that are no longer needed is a straightforward and effective way to reduce the quota used. This can be achieved by writing a Power Automate flow that automatically identifies and removes groups that have not been used for a long time or that meet specific cleanup criteria.

    Consider how you want to optimize how your groups are used and managed. For example, you can evaluate whether all created groups are necessary, or whether you can reduce the total number by merging groups.

    Best regards

    NeuviJ

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments