How to secure an entire branch in a Sitecore content tree?

后端 未结 2 1611
抹茶落季
抹茶落季 2021-01-12 10:27

I have a section of my content tree which I would like to deny ALL permissions to except for specific roles. This seems like a really obvious task to perform, and yet I don

2条回答
  •  忘掉有多难
    2021-01-12 10:40

    Ok, follow this guideline.

    Let's say we have sitecore\SomeRole and a content tree like this:

    Home
      branchA
        itemA1
      branchB
        itemB1
    

    We'd like to deny acccess to branchB and all its descendants for everyone, except for SomeRole.

    First off, in Security Editor select Home node, choose sitecore\Everyone role and set the following permissions:

    alt text http://img822.imageshack.us/img822/7172/sitecoreeveryonepermiss.png

    Now check the access in AccessViewer - that's what we need:

    alt text http://img532.imageshack.us/img532/3512/sitecoreeveryoneaccess.png

    Let's allow branchB for SomeRole. Go back to Security Editor and explicitly allow permissions for SomeRole:

    alt text http://img80.imageshack.us/img80/120/sitecoresomerolepermiss.png

    And check this in AccessViewer again:

    alt text http://img27.imageshack.us/img27/9584/sitecoresomeroleaccess.png

    Hope this answers your question. Beware that Sitecore versions prior to 6.2.X have an issue: AccessViewer doesn't refresh correctly after permissions are set. Kill aspnetwp (w3wp) to fix this.

提交回复
热议问题