Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hwyuaT0pRLampK5TwTkC3d
Power Automate - Building Flows
Answered

Get user info from Office 365 user ID

Like (0) ShareShare
ReportReport
Posted on 27 Jun 2019 07:00:24 by 59

Hi, I'm trying to build a Flow that triggers when a user is added to a Office 365 group. The thing is, this only returns the user ID.

After that, I'd like to get the user's UPN or name to add it to a SharePoint list.

I've tried doing that with the action of Office 365 Users (Search users, Get user profile, etc) but all of them require the user UPN or name, I can't do anything with the user ID.

I also tried with a HTTP request, using the Microsoft Graph to get the info, but it's too complicated, I can't seem to make it work.

 

If anyone can offer same insight I'd appreciate it. Thanks!

  • U_Idigoras Profile Picture
    59 on 28 Jun 2019 at 06:43:00
    Re: Get user info from Office 365 user ID

    Thank you both for your answers.

    That was it, I had to use the Get user profile (V2) action, using the User id to get the user's info. 

    Reading it asked for a UPN I didn't think the ID would work, silly me.

    Thanks again, it's working great now!

  • v-bacao-msft Profile Picture
    on 28 Jun 2019 at 05:31:58
    Re: Get user info from Office 365 user ID

    Hi @U_Idigoras ,

     

    We could use User Id to get user info in Get user profile action.

    If you want to monitor if a user is added to the specified group, please refer to the configuration below.

    Image reference:

    41.PNG

     

    Best Regards,

  • Verified answer
    Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on 27 Jun 2019 at 16:54:43
    Re: Get user info from Office 365 user ID

    @U_Idigoras 

    Hi there - It sounds like you're on the right track.  Can you post what you have so far?  Here's one I made to do the thing (except it send an email instead of adding to a list):20190627.PNG

     

     

     

    If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

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 Winners! 🌸

Congratulations to all our community participants!

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 > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 179 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 161 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 143

Overall leaderboard
Loading started