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 / Get User Profile(v2) -...
Power Automate
Unanswered

Get User Profile(v2) - User Not Found

(0) ShareShare
ReportReport
Posted on by 9

Hi there,

 

I am trying to get the user profile after appending the email to the variable (see screenshot below):

debuggingallday_3-1664352468221.png

 

debuggingallday_2-1664352170804.png

I'm having the error that the user profile cannot be found even though the correct email is being input into this. Please help I'm not sure why is it being like this.

 

Thank you!

 

 

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey @debuggingallday mate,

     

    Try to first search for the user and then use the "Get user profile action.

     

    CFernandes_0-1664353249503.png

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • debuggingallday Profile Picture
    9 on at

    Hi @CFernandes thank you for the reply. What do I put under search string (Search for users) and Get user Profile? Do i have to input the expression and what is the variable that is needed?

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @debuggingallday - Can you add a Compose action and check the output of your variable? 

     

    Search for users (V2) will get me all the users who have for example jagdish in their profile (applies to only display name, given name, surname, mail, nickname and user principal name). 

     

    For more details see - https://jd-bots.com/2022/01/15/search-for-users-v2-example-in-power-automate-microsoft-flow/ 

     

    f this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • debuggingallday Profile Picture
    9 on at

    Hi @CFernandes 

     

    The output of the variable is an email address (eg anonymous@outlook.com) . I have 2 different variables with 2 different emails. If i were to put the variable on the search term of "Search for users (V2)", under "Get User Profile" the output would be the value? Not sure what the expression will be. (See screenshot):

    debuggingallday_0-1664358757084.png

     

    Thank you for your help

     

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @debuggingallday Can you try to split and pass individual email addresses? 

  • Verified answer
    v-liwei-msft Profile Picture
    on at

    Hi @debuggingallday 

     

    The reason for the error is your append to string variable. 

    The variable contains multiple email addresses, and get user profile does not allow multiple email addresses to be entered at once. 

    You can use the split function to split the string variable into an array separated by semicolons, and then add an apply to each to iterate over the array. 

    Enter the expression item() in get uesr profile.

    I have made a test for your reference:

    vliweimsft_0-1664359605935.png

    vliweimsft_1-1664359616524.png

     

     

    Best Regards,

    Levi

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard