Changing work email address

Alerts and workflows are going to no-reply@mydomain.com instead of the active directory email address that I have for a user. The AD email address is external, but it still should work. The SIP address seems to reflect the external email address in AD, but the work email address does not. How do I change it to match the AD email address? I click on my settings and edit but it doesn't let me do this.
LVL 9
BobHavertyComhAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi,
which Sharepoint version/edition?
If server, do you have user profile sync up and running?
What you might try if it is Sharepoint 2010, is to force a sync from AD by running the following Powershell command:
Set-SPUser -Identity domain\userid -Web http://yoursharepointsitecollection -SyncFromAD
HTH
Rainer
0
BobHavertyComhAuthor Commented:
I have server 2010

User Profile Service shows as started in Central Admin.

I'm not too familiar with powershell yet. Ran the following, and have replaced the real domain name that I used with "mydomain"

PS C:\Users\Administrator> Set-SPUser -Identity mydomain\administrator -Web http://mydomain.com -SyncFromAD
Set-SPUser : Cannot find an SPWeb object with Id or Url : http://mydomain.com.
At line:1 char:1
+ Set-SPUser -Identity mydomain\administrator -Web http://mydomain.com -SyncFromAD
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...SPCmdletSetUser:SPCmdletSetUser) [Set-SPUser], SPCmdletP
   ipeBindException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletSetUser

I really need to start learning a lot more powershell. Next on my list. For right now, I need to test a complex workflow I'm developing for someone so I need the email to work right

Thanks.
0
BobHavertyComhAuthor Commented:
Whoopsy, user profile SYNC service was not started. Started it and reset IIS. Waiting.
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

BobHavertyComhAuthor Commented:
Starting user profile sync service worked for "my settings" from login drop down when in central admin, but not in the site collection. That remains the same. "My profile" from log in drop down gives a 404 in both cases, but maybe that's because I haven't bothered to set up mysites. Don't know.
0
BobHavertyComhAuthor Commented:
As far as the command you gave me, I had to load the SP profile and after that I could see SP commands in ISE. Ran it again and got a different error.

PS C:\Users\Administrator> PS C:\Users\Administrator> Set-SPUser -Identity
mydomain\administrator -Web http://mydomain.com -SyncFromAD

Get-Process : A positional parameter cannot be found that accepts argument 'Set-SPUser'.
At line:1 char:1
+ PS C:\Users\Administrator> Set-SPUser -Identity mydomaint\administrator -Web ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Process], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand
0
Rainer JeschorCommented:
Hi,
sorry but I am close to offline tonight. You have to run the command on the Sharepoint server in the Sharepoint management shell, starting with "run as admin" and starting it with an account who has admin permissions in Sharepoint.
0
Rainer JeschorCommented:
Hi,
here is a very excellent article:
http://blog.falchionconsulting.com/index.php/2011/12/updating-sharepoint-2010-user-information/

In SharePoint (server) there are two places of user information:
- User Profile Server
- Hidden list of user info in each Site Collection
Sometimes it can happen that the user profile is updated but not the entry in the hidden user info list. Then the Powershell command will force an update.

And sorry, but for a lot (nearly all) of configuration/administration processes, Powershell is the one and only possibility (without having to code 1000s of lines in C# for running console applications on the server). But the more I work with Powershell the more I like it. You can literally do nearly everything with it - even setting up a complete dev system, dev applications, dev/test web apps and site structures and even creating content (which is vital as soon as you start a real Software Development Lifecycle with integrated testing / regression testing ...)

HTH
Rainer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BobHavertyComhAuthor Commented:
Oh, I know that Powershell is very important. Next on my list of things to know and that will take me a lot of study.

Let me try the suggestions in the article, but it looks like I have to enter one name at a time for this script. There are many names not synchronizing. What is odd is that the older names I have added to AD are showing the correct email address, only newer ones added last week not showing it.

Also weird is the the administrator account has a weird address of "no-reply@mydomain.com". I  use no-reply in outgoing email settings for the reply address, so somehow it's picking that address up when that address was never entered into AD for administrator. My Farm Admin SPAdmin has the correct address reflecting AD as do other older addresses. So something odd is going on. Let me check the script out for right now. Thanks again.
0
Rainer JeschorCommented:
Hi,
the good thing about Powershell is that you could easily build a loop to call that function based eg on the user names from a csv file.
And one side note: afaik the user gets synced to this hidden list as soon as he alters anything in the site (also getting a task assigned, creating an alert ...).
0
BobHavertyComhAuthor Commented:
Well this does seem to be the correct answer, even if i don't like it. I really wanted the sync service to work as it should, but this is a good lesson. I am building a workflow for a customer in a contract job who has no sharepoint admin and doesn't really know what to do with sharepoint, so i realized that just using a user name that someone selects with the people picker on a form to dictate the email address in a workflow won't always work, so i have to append the domain name to the user name selected, and that even assumes that everybody's email address is their actual user name with the domain name after it, but i think i can at least assume that much. Thanks again.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.