get user details from active directory c# code example Example: c# get user directory Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);