Devang Mistry

Devang Mistry

  • NA
  • 23
  • 1.2k

How to fetch Manager display name for O365 user

Feb 26 2019 3:53 PM
Hi,
 
I am working on a .net core app that uses O365 authentication by leveraging the Azure AD app regsitration concept. I need some help on C# code to read manager name from Azure AD for a given O365 user (by passing either name or email), can someone share code for console app that can display manager name when email or user name is passed.
 
1. Also I need to fetch user names/members of an office 365 group by may be passing in a group id or group name.
 
2. Also need code on how I can list O365 group names that user belongs to .(user name or email can be input) 
 
Also, I am clear on Azure APP's client id, client secret key, tenant id concepts so can easily replace those if needed. 
 
Any help is appreciated.