Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I need to be able to show the latest 5 members of staff to join the organisation on our intranet homepage. I think the best way to do this would be with the People Search Core Results web part, but I can't come up with a query that will do it.

Can anyone suggest a query to pick out recent staff? Or pick out all staff, ordered by start date and then limit to 5 only?

Thank you!!

share|improve this question
    
Have you looked at the Anniversary Date field? –  Matthew McDermott Sep 20 '12 at 12:01
add comment

1 Answer 1

up vote 0 down vote accepted

Okay I finally managed to figure this out:

The main guide is here: http://www.sharepointsteve.com/2010/10/making-custom-user-profile-properties-searchable-in-sharepoint-2010/

  1. Make a custom attribute on user profiles
  2. Make that custom attribute import from the whenCreate AD attribute
  3. Run an incremental crawl (important, otherwise nothing shows up in step 4!)
  4. Add a new Managed Property in search that maps to the custom attribute
  5. Edit the People Search Core Results XSL to fetch the Managed Property
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.