Goal
The Sitefinity connector provides a mechanism which can filter the autocomplete and search results depending on the user’s role.
Prerequisite
Configured Hawksearch - Configure Hawksearch
Steps to configure filtering by permission
Open or create a Sitefinity page
Place the Hawksearch box and Hawksearch results widgets
Open the widget designer of each widget and click the checkbox
Filtering by permissions workflow
When filtering is active the connector exposes endpoints for the search and autocomplete queries making it work as a proxy.
Searching and typing trigger the connector’s endpoints
A server-side call to the Hawksearch API is made which returns the result for that request
The user’s permissions are evaluated and used to filter the results server-side
Important note
By filtering the results on the server nobody will be able to intercept the request client-side and see the results before they were filtered.
4.After the filtering is completed the results are displayed to the user though the Hawksearch result widget