The following users do not have e-mail addresses specified: . Alerts have been created successfully but these users will not receive e-mail notifications until valid e-mail addresses have been provided
In SharePoint 2007 or SharePoint 2010, when a user try to subscribe to an Alert, they got the above error.
Problem:
• When you create the user in AD email address not specified
• User got added to SharePoint
• You added user’s email in AD and run the profile import
• You know see user’s email address on mysite page
But when you subscribe to Alerts/emails. You are still getting error.
Solution:
Delete the user from SharePoint and add the user again and that will fix the problem.
Categories: Administration, MOSS 2007, SharePoint 2010 Tags: MOSS 2007, SharePoint 2010
How to add a manager for a user in Active directory using Infopath web forms
One creating a new user in Active Directory (AD), you might want to add or assign a manager to the user. Below is the function to add a manager to the user using infopath web forms
Public Sub AddManager(ByVal dEntry As DirectoryEntry, ByVal ManagerAccount As String, ByVal loginname As String)
Try
Dim ManagerSAM As String = ManagerAccount
Dim ManagerSearcher As New DirectorySearcher()
ManagerSearcher.PageSize = 10
ManagerSearcher.Filter = “(&(objectCategory=user) (samAccountName=” & ManagerAccount & “))”
ManagerSearcher.PropertiesToLoad.Add(“DistinguishedName”)
ManagerSearcher.SearchScope = SearchScope.Subtree
Dim managerResult As SearchResult
Dim ManagerResultCol As SearchResultCollection = ManagerSearcher.FindAll()
If ManagerResultCol Is Nothing Then
Else
managerResult = ManagerResultCol(0)
Dim ManagerName As String = String.Format(managerResult.Properties(“DistinguishedName”)(0))
SetADProperty(dEntry, “Manager”, ManagerName)
End If
Catch ex As Exception
MessageBox.Show(ex.Message, “Active Directory Error”, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)
End Try
End Sub
Categories: Administration, Code Samples, Infopath Tags: Active Directory, Infopath, SharePoint 2010
SharePoint 2010: Branding master page manage scrolling on the body
When branding SharePoint 2010, you might want to remove the scrolling which is happening in the main body area. It works but does not look good.
Try adding this styles below and see the difference.
body {
overflow: visible!important;
height: 100%!important;
}
body #s4-workspace {
height:100%!important;
overflow-y:hidden!important;
overflow-x:auto!important;
}
Categories: Branding, SharePoint 2010 Tags: branding, SharePoint 2010