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 / Search Usersv2 broken?...
Power Automate
Unanswered

Search Usersv2 broken? No results with dynamic input

(2) ShareShare
ReportReport
Posted on by 2
Dear Community,
I am trying to Use the "Search Users v2" Step.
For this purpose i only have the Display Name available.
 
If i input the Display Name as a String Variable, extracted with a compose step beforehand, the Search Users Step does not return any Values, the body stays blank.
If the input is hardcoded it returns the values. I compared the "Raw Input" Fields of the two jobs, but they are identical.
 
Power Automate seems to treat the dynamic contant somehow differnt.
 
The dynamically extracted Strings work fine within any other step without problems.
 
How can we solve this?
 
 
Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    To better assist you with your Power Automate issue, could you please provide a screenshot of your flow, specifically showing how the action(s) are configured? If you are encountering any errors, please indicate which action failed and include the error message(s) you received. This information will help us diagnose the problem more effectively. Also include an image of a flow run with the value created from the expression in the compose action (black out as needed for data privacy). Thank you!
  • RM-20021738-0 Profile Picture
    2 on at
    Hello David,
     
    The step does not actually produce an error but is successful, but is not returning any values, the body stays blank:

     
    Input of the search for users action is an extracted string variable from e-mail, the string variable is being extracted with a compose step and put into an variable "Manager":

     
    If i take a look at the "raw inputs" of the step i can clearly see the correct Search term.
     
     
    If i choose to hardcode the search Term, wether in the "search users" input or the manager variable,
    the "raw input parameters" show up identical, but values are returned as expected
     
     
     
    Whenever the value is dynamic it is not working.
     
    Any ideas?
     
     

     
  • AP-24021505-0 Profile Picture
    5 on at
    I have the same drawback when getting userV2 but it brings me 2 completely different errors: 
     
    "Exception of type 'Microsoft.SharePoint.Client.ResourceNotFoundException' was thrown."
     
    I am trying to get user data and concatenate with string variables but it does not return any value for concatenation. 
     
     
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    Based on your screen shot, you are using the Get user profile action instead of search for users action:
    The error message says the user profile you were trying to get was not found as noted in your screen shot.
    You'll need to add error handling to your flow. You can do that with a parallel branch underneath the action.
    For the action you want to handle when the user is not found, set the run after setting to has failed:

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard