Header "x-ms-throttle-limit-percentage" not coming in response

JSG 1 Reputation point
2022-02-14T10:26:32.94+00:00

My application makes a lot of calls to the graph API to get the properties I need. It is impossible to reduce the number of requests in my case. And for this, I need to understand when the number of requests approaches the limit and that I need to stop doing them so as not to get 429)

The documentation says that the parameter "x-ms-throttle-limit-percentage" should come in the header when the number of requests approaches the limit from 0.8. As I understand it, 0.8 is a coefficient from 1, where 1 is the upper limit of the limit: https://learn.microsoft.com/en-us/graph/throttling?view=graph-rest-1.0#regular-responses-requests

But I didn’t get this parameter in the header, although Retry-After with TooManyRequests.

How can I get this parameter in the response? Perhaps you need to specify additional parameters for this? Or set up Tenant for this?

Or is there another way to view throttle-limit?

Thanks in advance for your reply)

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,874 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zehui Yao_MSFT 5,831 Reputation points
    2022-02-17T08:51:54.023+00:00

    Hi @JSG , As you mentioned in another post, the properties you requested is not stored in Azure AD,and cannot be obtained through the API.

    At the same time, it is possible that your number of requests has not reached the limit according to the documentation, so the header does not appear.

    175259-image.png

    I recommend opening a support ticket for more details on throttling and getting properties stored outside of the main data store.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments