April 8th, 2005 by obts
Subject: Email Address change
Date: Sun, 3 Apr 2005 09:53:03 -0700
Our company’s name changed and our email accounts changed also. The profiles imported from Active Directory and all of the links regarding account names on the portal reflect the change. The WSS sites did not.
It appears that each site maintains it’s own user information instead of referencing the portal profile.
Is there a way to change all of a particular user’s email account across all of the WSS sites?
I noticed there were several instances of the same username in the table UserInfo, column tp_Email. I assume each site has it’s own list of users. I ran an update query on our test server to change the email address for a couple of users and it did not appear to damage anything.
Using SharePoint Portal 2003 SP1 on Windows 2003 Standard. SQL Server
2003 SP3 for the database.
Has anyone run across something similar?
Subject: RE: Email Address change
Date: Sun, 3 Apr 2005 13:33:02 -0700
Not OOTB but programetically Absolutely yes.
Dim siteCollection As SPSite = SPControl.GetContextSite(Context) Dim site As SPWeb = siteCollection.AllWebs(“Site_Name”)
Dim user As SPUser = site.AllUsers(“User_Name”) user.Email = “E-mail_Address”
user.Name = “Display_Name”
user.Notes = “User_Notes”
Yes you are referring to right table UserInfo which maintains all the info related to users.