Try our conversational search powered by Generative AI!

Restricts Page using user groups


Hi all,

Is there any way to restrict the pages based on  the user groups?


Feb 04, 2016 16:40

Definitely. Set security on any content in admin is easiest. Remove access for everyone and add any group you want...

Content inherit security settings from the parent node normally

Feb 04, 2016 16:45

Check out the admin handbook at

and read the section about "Access rights in the content structure"

Feb 04, 2016 16:48

Hi Daniel,

Thanks for your reply.

How to handle this by code or Api. Any idea.


Feb 04, 2016 17:05

You can filter any content or collection easiest by using EPiServer.Filters...

Check out

Usually the easiest way is to use FilterContentForVisitor

Feb 04, 2016 17:12

Hi Daniel,

I have given read access only to my user group, but when i render the page in browser it redirects to episerver editor login page.

But i need to redirect to my custom login page. Is that possible. And i have used this code in rendering page Template.

 bool val = CurrentPage.ACL.QueryDistinctAccess(EPiServer.Security.AccessLevel.Read);



Feb 04, 2016 17:46

Epi will automatically redirect you to login page if you dont have access to current page so your code will never be used.

The login page Epi will use as target is the one set in web.config. Search for login.aspx and replace that with url to your custom page

Feb 04, 2016 23:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.