web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Get user info from Office 365 user ID

(0) ShareShare
ReportReport
Posted on 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!

I have the same question (0)
  • Verified answer
    Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at
    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.

  • v-bacao-msft Profile Picture
    on at
    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,

  • U_Idigoras Profile Picture
    59 on at
    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!

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard