Loading...

Last updated: Oct 31 2016

Area: Episerver Find Applies to versions: 12 and higher
Other versions:

Access rights

Controlling access to Find UI features

Members assigned to the roles WebAdmins, Administrators, SearchAdmins, and SearchEditors can access the Find user interface. Only WebAdmins, Administrators, and SearchAdmins can clear indices. 

See also: Virtual rolesClearing the index and reindexing

Search result filtering using access rights

This section explains Access rights filtering if Episerver Find is integrated with Episerver 7/7.5 CMS.

The search engine does not filter documents (such as pages or files) according to access rights. But, if you integrate Find with the Episerver CMS, the return values from the IContent extension methods RolesWithReadAccess and UsersWithReadAccess are indexed. 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();

Do you have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/