Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Microsoft 365 Users Search for Users returns duplicates

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I'm building a flow where I need to gather email addresses for some of our 365 users and send them. It's all working fine, except everyone is getting 2 emails. I checked the outputs from each step and it seems that when I use this connector, it returns matching users twice. I verified this by putting the output from this connector into Notepad++ and searching for duplicate IDs. Every user is listed twice in the output.

 

Has anyone else come across this, or can anyone recommend a way of removing these duplicate results?

 

Thanks

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: Microsoft 365 Users Search for Users returns duplicates

    Hi @Anonymous ,

     

    Could you please share the screenshot of the configuration and the run history of the flow?

    Does the Search for users action would return the same user twice?

    Could you please check each user is unique in the Microsoft o365 users, the Search for users action would return all the filtered users.

    If you want to get the special user profile, you should use the Get user profile action instead.\

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Jcook Profile Picture
    7,770 Most Valuable Professional on at
    Re: Microsoft 365 Users Search for Users returns duplicates

    Hello @Anonymous 

     

    Could You share a screenshot of your flow.

     

    thanks

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow