Inside Activate
Search
Excluding Users From Home Page Search
5 min
overview from activate version 8 1 onwards, custom search filters can be applied to control which objects are included in the home page search index these filters are applied at index build time and allow organisations to exclude specific users, contacts, or computers based on defined criteria this capability is commonly used to remove external accounts or non relevant directory objects from search results how search filtering works activate builds its home page search results from an indexed data set custom filters modify the underlying query used to build this index when a filter is configured and the index is rebuilt matching objects are excluded from the search index excluded objects do not appear in home page search results the filtering applies consistently across searches supported filter types the following filter parameters are supported customuserfilter – applies to user objects customcontactfilter – applies to contact objects customcomputerfilter – applies to computer objects each filter is optional and can be configured independently configuration steps step 1 create the filter parameter navigate to resources > configuration > search add a new parameter using one of the supported filter names customuserfilter customcontactfilter customcomputerfilter step 2 define the filter condition set the parameter value to a valid sql where condition this condition is appended to the query used to build the search index example exclude external users from search results displayname not like '%#ext#%' step 3 rebuild the search index after saving the filter configuration, trigger a full rebuild of the search index the updated index will apply the configured filters and exclude matching objects from home page search results notes and considerations filters only take effect after a full index rebuild incorrect sql conditions may result in unexpected exclusions test filter logic carefully before applying in production multiple filters can be configured together as required