Loading...
Area: Episerver Search & Navigation
Applies to versions: 12 and higher
Other versions:

Access rights

Recommendations [hide]

This topic introduces access rights when working with Episerver Search & Navigation (formerly Episerver Find), and describes how to control access for content displayed in search results.

Access right filtering of search results

When integrating Search & Navigation with Episerver CMS, the search engine does not filter documents (such as pages or files) according to access rights. However, the return values from the IContent extension methods RolesWithReadAccess and UsersWithReadAccess are indexed. You can use these methods to ensure that only users with access rights to the supplied roles/users see the content.

Example:

SearchClient.Instance.Search<StandardPage>()
    .For("Possibly secret stuff")
    .Filter(x => x.RolesWithReadAccess().Match("Everyone"))
    .GetContentResult();

Controlling access to UI features

Members assigned to the roles WebAdmins, Administrators, SearchAdmins, and SearchEditors can access the Search & Navigation user interface. Only WebAdmins, Administrators, and SearchAdmins can clear indices. See Shell module.

Related topics

Do you find this information helpful? Please log in to provide feedback.

Last updated: Oct 31, 2016

Recommendations [hide]