Hi @Kumar9024021 ,
Yeah, you are right. Currently, there is an known limits with the Office365Users.SearchUser(...) function -- it could only retrieve 999 records from your Office 365 Users service at most once time.
On your side, please modify your formula as below:
Filter(
Office365Users.SearchUser({searchTerm:"", top: 999}), // specify top property to 999, so you could retrieve 999 records at most once time
"Sales" in JobTitle || DataCardValue4.Text in Department
).DisplayName
If you want to retrieve all user profiles (e.g. 2500) through the Office365Users.SearchUser(...) function, I afraid that there is no way to achieve your needs in PowerApps currently.
If you want to get rid of this known limit with Office 365 Users connector, as an alternative solution, you could consider create a custom connector within your PowerApps based on Microsoft Graph REST API, within the custom connector, define corresponding action to retrieve user profiles from your tanent, after that, add the custom connector connection into your app to retrieve user profiles from your tenant.
More details about creating a custom connector based on MS Graph REST API, please check the following blog:
https://gotoguy.blog/2017/12/17/access-microsoft-graph-api-using-custom-connector-in-powerapps-and-flows/
More details about the customizing custom connector in PowerApps, please check the following article or video:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api
https://www.youtube.com/watch?v=dBCS1nPsDiE
Best regards,