Specifying users’ email in Sharepoint 2010

Specifying users’ email in Sharepoint 2010

How to deal with  “You do not have an e-mail address. 
Alert has been created successfully but you will not receive notifications until
valid e-mail or mobile address has been provided in your profile.” error
message.

Long story
short:
In Foundation just add the email
address on the My Settings page.
In
Server either add email for each user in User Profile Service Application
properties, or let them edit it themselves. But it must get copied from User
Profile web application to “real”, content web applications before it could be
used in Alerts.

To copy it from User Profile application:
– Make sure
User Profile Synchronization Service is running
– Make sure the sync of user
profiles to Active Directory is finished (Note: I need to test what’s happening
on a clean install)
– Either wait for it to run as scheduled (hourly by
default) or force to run “User Profile Service Application – User Profile to
SharePoint Full Synchronization” timer job.

Long story, with
illustrations:

1. Sharepoint 2010 Foundation:

Obviously there is no User
Profile Service:

Also, “Welcome Menu” only
has link to My Settings Page:

Which lets you specify email address:

That was easy.

2. Sharepoint 2010 Server

In Server, user properties
are stored in user profile:

so here’s My Settings page:

And, of course, by
default it does not let you edit email address. Also, the settings are in User
Profile regardless of whether User Profile Synchronization is configured:

Disassociating a web
application from User Profile Service does not seem to change the My Settings
page. However, Central Administration does not seem to use UPS anyway:

Now, if you allow users
to edit their email address on Central Admin/Application Management/Manage
Service Applications/User Profile Service/Manage User Properties:

Then users will be able
to edit their email on their profile page. However, once they edit it, it does
not immediately appear on My Settings page and attempting to set up Alerts will
still result in “You do not have an e-mail address.  Alert has been created
successfully but you will not receive notifications until valid e-mail or mobile
address has been provided in your profile.” error message. To propagate it from
User Profile to each individual web application:
– Make sure User Profile
Synchronization Service is running
– Make sure the sync of user profiles to
Active Directory is finished (Note: I need to test what’s happening on a clean
install)
– Either wait for it to run as scheduled (hourly by default) or
force to run “User Profile Service Application – User Profile to SharePoint Full
Synchronization” timer job.