Posts Tagged ‘SharePoint 2010’

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.

Be the first to comment - What do you think?  Posted by Tosh - January 19, 2012 at 9:39 am

Categories: Administration, MOSS 2007, SharePoint 2010   Tags: ,

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

1 comment - What do you think?  Posted by Tosh - November 21, 2011 at 9:50 am

Categories: Administration, Code Samples, Infopath   Tags: , ,

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;

 

}

1 comment - What do you think?  Posted by Tosh - October 31, 2011 at 10:11 am

Categories: Branding, SharePoint 2010   Tags: ,

Next Page »