I have this code where I can change the display name, password, etc. in the Active Directory
UserPrincipal userPrincipal = UserPrincipal.FindByIdentity(principalContext, userName);
userPrincipal.DisplayName = "Some NAME";
userPrincipal.SetPassword("NEW_PASSWORD");
userPrincipal.Save();
I have looked at the properties of userPrincipal and I can not find the phone number property. My question is how do I change the phone number for the User in the code.
Thank You