cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
U_Idigoras
Level: Powered On

Get user info from Office 365 user ID

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

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.

View solution in original post

3 REPLIES 3
Super User
Super User

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.

View solution in original post

Community Support Team
Community Support Team

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
U_Idigoras
Level: Powered On

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!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 402 members 3,080 guests
Please welcome our newest community members: