Hello, @11348524,
Welcome to the Microsoft Q&A platform!
Based on your description, I understand that you have already adjusted the "DiscoveryMaxStatsSearchMailboxes" throttling policy, but you still failed to adjust the results limit from 100 to 500.
To solve this problem, please try to perform the following steps.
1. Review EWS Limits: Make sure you are aware of all the limits imposed by EWS and adjust your application design accordingly. This includes understanding the default throttling policies and how they apply to your searches.
2. Check Throttling Policies: Ensure that other relevant throttling policies are adjusted. For example, the "DiscoveryMaxMailboxes" and "DiscoveryMaxMailboxesResultsOnly" settings might also need to be increased.
3. Adjust the Search Filter: Modify the search filter by adding a "$top" parameter to your filter query. This parameter specifies the number of items to return in the search results.
4. Pagination: Implement pagination in your search queries. This involves breaking down the search into smaller chunks and iterating through the results. You can use the "Paging" property in EWS to handle this.
For more information about how to achieve these, you can click on EWS throttling in Exchange | Microsoft Learn for reference.
If the answer is helpful please click on ACCEPT ANSWER as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.
Thank you for your support and understanding.
Best Wishes,
Alex Zhang