SOLVED

Get User's information from Azure Active Directory

%3CLINGO-SUB%20id%3D%22lingo-sub-352104%22%20slang%3D%22en-US%22%3EGet%20User's%20information%20from%20Azure%20Active%20Directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-352104%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20new%20to%20Microsoft%20Flow.%3C%2FP%3E%3CP%3ECreating%20a%20flow%20which%20requires%20getting%20user's%20information%20from%20Azure%20Active%20Directory%2C%20like%20Manager%20name%20and%20email%20address.%3CBR%20%2F%3EHow%20to%20get%20user's%20information%20from%20AAD%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-352104%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-352123%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20User's%20information%20from%20Azure%20Active%20Directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-352123%22%20slang%3D%22en-US%22%3EHello!%20In%20ms%20Flow%20you%20can%20pull%20users%20information%20from%20Office%20365%20Users%20Connector.%20Greets%2C%20Eva%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-759584%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20User's%20information%20from%20Azure%20Active%20Directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-759584%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F285444%22%20target%3D%22_blank%22%3E%40PriyaRaskar%3C%2FA%3E%26nbsp%3Bthere%20is%20an%20Azure%20AD%20Connector%20though%20it%20appears%20to%20only%20support%20retrieving%20a%20limited%20set%20of%20properties%2C%20including%20Mail%20and%20Mobile%20Phone%2C%20but%20not%20including%20Manager%20(Reports-To)%20or%20Department.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20odd%2C%20you%20can%20set%20a%20user's%20manager%20or%20their%20department%20using%20Flow%20or%20Logic%20Apps%2C%20but%20there%20doesn't%20seem%20to%20be%20a%20way%20to%20retrieve%20their%20current%20values.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDocumentation%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fconnectors%2Fazuread%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fconnectors%2Fazuread%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-759597%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20User's%20information%20from%20Azure%20Active%20Directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-759597%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F90646%22%20target%3D%22_blank%22%3E%40Eli%20Robillard%3C%2FA%3E%26nbsp%3BThank%20you%20for%20the%20help%20Eli%20Robillard.%3CBR%20%2F%3EAs%20you%20mentioned%2C%20I%20couldn't%20find%20a%20way%20to%20get%20Manager%20Name%2C%20but%20I%20found%20a%20work%20around%20to%20get%20Manager's%20email%20ID%20to%20send%20an%20email%2C%20which%20was%20the%20requirement.%3CBR%20%2F%3EI%20used%20Get%20Manager(V2)%20connector%20and%20passed%20User's%20email%20ID%20as%20User(UPN)%20and%20retrieved%20his%20manager's%26nbsp%3B%20email%20ID.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-759603%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20User's%20information%20from%20Azure%20Active%20Directory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-759603%22%20slang%3D%22en-US%22%3EThank%20you%20for%20the%20help!%3CBR%20%2F%3EAs%20you%20mentioned%2C%20I%20couldn't%20able%20to%20retrieve%20manager's%20information%2C%20but%20found%20a%20work%20around%20to%20get%20manager's%20email%20and%20used%20it%20to%20fetch%20information.%3CBR%20%2F%3EI%20used%20Get%20Manager(V2)%20connector%20and%20passed%20email%20ID%20as%20User(UPN)%20to%20get%20user's%20Manager%20email%20ID.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hello,

I am new to Microsoft Flow.

Creating a flow which requires getting user's information from Azure Active Directory, like Manager name and email address.
How to get user's information from AAD?

4 Replies
Highlighted
Hello! In ms Flow you can pull users information from Office 365 Users Connector. Greets, Eva
Highlighted

@PriyaRaskar there is an Azure AD Connector though it appears to only support retrieving a limited set of properties, including Mail and Mobile Phone, but not including Manager (Reports-To) or Department.

 

It's odd, you can set a user's manager or their department using Flow or Logic Apps, but there doesn't seem to be a way to retrieve their current values. 

 

Documentation: 

https://docs.microsoft.com/en-us/connectors/azuread/ 

 

 

Highlighted
Best Response confirmed by Eli Robillard (New Contributor)
Solution

@Eli Robillard Thank you for the help Eli Robillard.
As you mentioned, I couldn't find a way to get Manager Name, but I found a work around to get Manager's email ID to send an email, which was the requirement.
I used Get Manager(V2) connector and passed User's email ID as User(UPN) and retrieved his manager's  email ID.

Highlighted
Thank you for the help!
As you mentioned, I couldn't able to retrieve manager's information, but found a work around to get manager's email and used it to fetch information.
I used Get Manager(V2) connector and passed email ID as User(UPN) to get user's Manager email ID.