Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

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

Posted on by 6

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

  • HC-08110621-0 Profile Picture
    HC-08110621-0 6 on at
    Filter 'Search for users (V2)' by Account Enabled to reduce the number of results
    Thanks both. The problem seems to be solved by pagination.
     
  • VictorIvanidze Profile Picture
    VictorIvanidze 11,832 on at
    Filter 'Search for users (V2)' by Account Enabled to reduce the number of results
    Use a GRAPH request:
     
  • Suggested answer
    Filter 'Search for users (V2)' by Account Enabled to reduce the number of results
    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.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard