Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Search For Users (V2) Multiple Users With Same Name

Hi there, 

I have flow set up to capture and record in a document a PVA user & their line manager. I've since discovered there are a number of employees with the same name e.g. Joe Bloggs which automate is then capturing the wrong Joe Bloggs' manager. 


Is there a way to capture the actual bot users manager even if they have the same name as someone else? 


Currently I'm capturing their username via the bot authentication, searching for that user via their username and then getting that users profile & manager via their UPN. So I have a feeling the issue lies within the 'Search for users (V2)' since UPN is unique, it must be picking the wrong user at that point?

Thank you




Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (3,362)