Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Navigation [hide] [expand]
Area: Optimizely Search & Navigation
ARCHIVED This content is retired and no longer maintained. See the latest version here.

This topic describes access rights filtering for an integration with Episerver 7/7.5 CMS.

How it works

The search engine does not apply any access rights filtering for documents such as pages or files. However, when using the Episerver CMS integration, the return value from extension methods for IContent named RolesWithReadAccess and UsersWithReadAccess will be indexed. This means that we can filter out content that the current user should not be able to see.

Examples

An example of filtering using RolesWithReadAccess:

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

Last updated: Nov 16, 2015