Problem:
You are using PowerShell to set value for user’s Manager and you use email address when setting the value of the UserProfile[“Manager”].Value.
Looking at user profile, the Manager property looks correct, it even resolves domain account properly.
However, Organization browser is not showing Managers for users.
Solution:
Don’t use e-mail when setting Manager value:
$userProfile["Manager"].Value = $managerEmail
instead use manager’s account name:
$managerProfile = $profileMgr.GetUserProfile($managerEmail)
$userProfile["Manager"].Value = $managerProfile["AccountName"]
PS. CSV file we use for importing profiles doesn’t contain AD account name, that’s why I’m using email in the first place.
No comments:
Post a Comment