November Happy Hour will be moved to Thursday December 5th.

Restriction at page level

Vote:
 

Hi Team,

Is there any way we can restrict particular user to browse any page using  CMS? for example, if we have an page ABC and want to give access to user A only to see that page. 

#180759
Jul 25, 2017 14:49
Vote:
 

In that case, manage the Access Rights for that page. Remove read access for "Everyone" and add read access for your User.

Note: It's a better practice to work with access rights for roles/groups than directly on users.
For example create a role called "ReadABC", add user A to that role. Manage the access rights for the page ABC and add the role "ReadABC" with read access.

Read more about access rights in the online manual http://webhelp.episerver.com/17-2/cms-admin/access-rights.htm#.

#180762
Jul 25, 2017 15:26
Vote:
 

thanks Nilsson, 

Is it also possible to hide that link from Menu (page ABC) so that it will not show for other users and visible only to user 'A'.

#180779
Jul 26, 2017 11:10
Vote:
 

Hi,

That depends on how you build your menu. I would guess that you have some kind of list of pages (PageDataCollection, PageData[], List<PageData>, IEnumerable<PageData> or similar.

Using the built in filter FilterForVisitor should work for you: https://world.episerver.com/documentation/Class-library/?documentId=cms/10/BE2FD317

The method Filter will return an IEnumerable where the content

  • Are published
  • User have access
  • And have a template/view
#180783
Jul 26, 2017 11:30
* 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.