It seems that you are experiencing an issue with the Microsoft Graph API where the $top parameter is not returning the expected number of records. According to the documentation, the $top query parameter is used to specify the number of items to be included in the result, but the maximum number of items that can be returned is dependent on the specific API being called.
In your case, it appears that the API is returning a maximum of 50 records regardless of the $top parameter setting. This behavior could be due to a limitation of the API or a specific configuration of the endpoint you are accessing.
To troubleshoot this issue, you might consider the following steps:
- Check API Documentation: Verify the maximum limit for the specific endpoint you are using. Some endpoints may have hard limits on the number of records returned.
- Use Pagination: Since you are receiving an
@odata.nextLink, you can continue to paginate through the results using the$skipparameter to retrieve additional records. - Contact Support: If the behavior persists and you believe it is not aligned with the documentation, consider reaching out to Microsoft support for further assistance.
If you continue to face this issue, it may be beneficial to provide feedback through the Graph Explorer or check for any known issues in the Microsoft Graph API documentation or forums.