Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Answered

Get User Profile(v2) - User Not Found

Like (0) ShareShare
ReportReport
Posted on 28 Sep 2022 08:11:20 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!

 

 

 

  • Verified answer
    v-liwei-msft Profile Picture
    on 28 Sep 2022 at 10:07:13
    Re: Get User Profile(v2) - User Not Found

    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

     

  • CFernandes Profile Picture
    8,283 Most Valuable Professional on 28 Sep 2022 at 09:59:34
    Re: Get User Profile(v2) - User Not Found

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

  • debuggingallday Profile Picture
    9 on 28 Sep 2022 at 09:53:29
    Re: Get User Profile(v2) - User Not Found

    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,283 Most Valuable Professional on 28 Sep 2022 at 09:13:09
    Re: Get User Profile(v2) - User Not Found

    @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 28 Sep 2022 at 08:46:12
    Re: Get User Profile(v2) - User Not Found

    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,283 Most Valuable Professional on 28 Sep 2022 at 08:21:53
    Re: Get User Profile(v2) - User Not Found

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard