web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter 'Search for use...
Power Automate
Suggested Answer

Filter 'Search for users (V2)' by Account Enabled to reduce the number of results

(0) ShareShare
ReportReport
Posted on by 10

I built a flow to retrieve user information from Office 365 and create items in a SharePoint list.

I added a condition to filter users with “Account Enabled = true” to get all active users after obtaining the full list of users.

However, the “Search for users (V2)” action does not return the complete list of users. I would like to ask if there is a limit on the number of users it can output?

If so, are there any methods to filter users with “Account Enabled = true” directly within the “Search for users (V2)” action to reduce the number of results?

Thanks.

Image

Categories:
I have the same question (0)
  • Suggested answer
    Jalpa Mahesh Dhola Profile Picture
    35 on at
    Search for users (V2) action does not have any filter in it. We must have to use condition after getting results. But we can limit the number of users by giving value in Top. (between 1 to 1000).
     
    Search for users (V2) returns maximum 1000 results at a time which is its default value.
    You can pass the value between 1 to 1000.
    By going to settings of that action, you can achieve more results using pagination.

  • VictorIvanidze Profile Picture
    13,073 on at
    Use a GRAPH request:
     
  • HC-08110621-0 Profile Picture
    10 on at
    Thanks both. The problem seems to be solved by pagination.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard