Getting Manager E-Mail Id from AD Based on login User ////Get the username and domain information
string userName = Environment.UserName;
string domainName = Environment.UserDomainName;
List<string> emailAddresses = new List<string>();
PrincipalContext domainContext = new PrincipalContext(ContextType.Domain, domainName);
UserPrincipal user = UserPrincipal.FindByIdentity(domainContext, userName);
I can retrived besic users attributes from AD but not manager email id field
Please help me
Thanks