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.

How it works

The search engine does not implement any access rights filtering for documents (pages, files and so on). However, when using the Episerver CMS integration, the return value from an extension method for PageData named RolesWithReadAccess are indexed. This means that you can filter out pages that the current user should not be able to see.

Example

Filtering out results using RolesWithReadAcess:

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

Last updated: Nov 16, 2015