Way to filtering search result by user/dept role?

Hi Experts,

I'm configuring intranet search page. One of the requirements of this project is that users can get the search result only in their department's data. I have "user id" & "dept id" fields but dont know how to show only for their department's.
should I filter search result after search query or filter user/department first and send query? Please give me some advice.

@giani do you have the user's ID and dept ID values when you run the query?

With a subscription, you would typically accomplish this with document level security which allows you to build a filter template referencing user metadata (like ID and department) that applies to every query a user runs. See the docs on that here

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.