Please see https://learn.microsoft.com/en-us/graph/throttling?view=graph-rest-1.0#identity-and-access-reports-service-limits for why you might be throttled...
Hope this helps,
Dan.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Microsoft graph API for sign-in logs gets throttled when requested for large period ( 10- 30 days). Works fine when the period is small ( 1-5 days).
When the below query was requested we received 429 response code and the message "This request is throttled. Please try again after the value specified in the Retry-After header."
SignIn API (With 18days period) : https://graph.microsoft.com/v1.0/auditLogs/signIns?$orderby=createdDateTime asc&$filter=createdDateTime gt 2021-04-02T11:59:59Z and createdDateTime+le+2021-04-20T10:51:20Z
And based on Best practices to avoid throttling documentation, we did not exceed the request.
Does the throttling depends on the number of data being queried?
Please see https://learn.microsoft.com/en-us/graph/throttling?view=graph-rest-1.0#identity-and-access-reports-service-limits for why you might be throttled...
Hope this helps,
Dan.