Filter search results in MOSS 2007 depending on the signed in user.

Hello,

I have a Sharepoint site where all the lists and libraries are going to be filtered depending on the user that's logged in (using a UserID identifier for each user and each list item having that same UserID as foreign key). I need to implement search capabilities on the site, however I also need the search results to be filtered by that same UserID. And this should be transparent for the user, he shouldn't be aware of the filter; in other words the user shouldn't be able to turn on or off the filter (as for example a Scope) and shouldn't be able to override it (as for example a param in a QueryString).

I'm trying to link a CurrentUserFilter to the search results, in other words.

Any ideas on how to acomplish this?

Thanks,

Michel

[787 byte] By [Beche] at [2008-2-4]
# 1

Michel,

Probably the easiest way to do this is to create a new Managed Metadata field that maps the the UserID field in the crawled content.

Then customize the search, you may need to roll your own here, to always add the requirement for UserID = CurrentUser to the where clause.

HTH

Andrew

andrewwoodward at 2007-9-6 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 2

Did you solve this problem?

Can you post the sollution?

thnks!

gr.

Marc

--MarcC-- at 2007-9-6 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 3
Why are you going this route instead of setting the per list item security. If you set the per list item security then you dont have to do anything extra for search. The list items will automatically be security trimmed. Am I missing something?
PuneetNarula-MSFT at 2007-9-6 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...

SharePoint Products and Technologies

Site Classified