Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

changing area owner through code

  Asked By: Miguel    Date: Nov 07    Category: Sharepoint    Views: 924

when I tried changing the site owner through code

area.Owner = "username"
area.Ownermail = "username@..."


this changes the site owner but does not resolve the username from AD like it
happens when you add the user through SPS UI.

i.e. if u use SPS UI the Area Details webpart displays the username like
"Firstname Surname" but when u do it through code it shows just "username", what
ever you specified as owner.

if any of you know how this can be done do let me know?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on changing area owner through code Or get search suggestion and latest updates.