Skip to main content

Notifications

Community site session details

Community site session details

Session Id : YIde/shWaW6XSMEbOfREjK
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

Understanding Microsoft Agents - Introductory Session

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

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started