Recommended Way to Create Private Pages in Kentico?

kentico guy asked on June 29, 2020 20:16

Using Kentico version 12 portal pages: what is the recommended way to make private pages? The requirement is to have pages that only some people can access. Is there any out of the box support for this feature or is it something that I'm going to need to build custom?

If I do have to build it custom, what's a high level recommended way of doing it? I don't need a super detailed explanation, just a high level quick overview of a recommended way to do it.

I'm thinking (without having much background) I could create a page type property that would be a list of authorized users and redirect if the user isn't logged in or isn't on the list. Is this overly complicating things? Does kentico support this type of feature out of the box?

How have you all implemented requirements like this in the past?

Thank you for reading

Recent Answers

David te Kloese answered on June 29, 2020 20:27

Check out the Security tab in the Pages application:

You can give certain users or complete role access.

It will popup the default login if you are not logged in.

1 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on June 30, 2020 11:50

Just a quick addition to David's answer: also make sure you use .CheckPermissions() call if you need to display only available pages to the user. And don't forget to hide these pages from search engines, site search, remove from sitemap if needed.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.