How can I fix error Webhook subscription limit reached?

Anonymous
2024-09-09T08:01:58.13+00:00

https://graph.microsoft.com/v1.0/subscriptions

error message: Operation: Create; Exception: [Status Code: Forbidden; Reason: Tenant has reached it's maximum number of subscriptions]

Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Hitesh Pachipulusu - MSFT 3,635 Reputation points Microsoft External Staff
    2024-09-09T10:20:01.6233333+00:00

    Hello Minh Nguyen Truong,

    Thank you for reaching Microsoft Support!

    The error message you’re seeing indicates that your tenant has reached the maximum number of webhook subscriptions allowed. Here are a few steps you can take to resolve this issue:

    1. Review Existing Subscriptions: Check your current subscriptions to see if there are any that can be deleted or consolidated. You can list your existing subscriptions using the following endpoint:
         GET https://graph.microsoft.com/v1.0/subscriptions
      
    2. Optimize Subscriptions: Consider optimizing your webhook subscriptions. For example, if you have multiple subscriptions for similar events, you might be able to consolidate them into fewer subscriptions.
    3. Check for Unused Subscriptions: Sometimes, subscriptions might not be actively used but still count towards your limit. Make sure to clean up any unused or expired subscriptions.

    User's image Please check documentation.

    Certain limits apply to Azure AD based resources (users, groups) and will generate errors when exceeded.

    Maximum subscription quotas:

    • Per app: 50,000 total subscriptions
    • Per tenant: 1000 total subscriptions across all apps
    • Per app and tenant combination: 100 total subscriptions

    When the limits are exceeded, attempts to create a subscription will result in an error response - 403 Forbidden.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.