Expand my Community achievements bar.

SOLVED

Access rights for folders based on users

Avatar

Level 4

Hi Team

 

I have requirement where based on logged in user I want to restrict folder creation and content fragment creation.

 

Requirement is:

I have two user groups authors and reviewers.

Authors can create content fragment but should not create and delete folders under /content/dam/aaa/bbb

Reviewers can create and delete folders but should not create content fragments under path /content/dam/aaa/bbb

 

I have written servlet to identify the user groups.

Also using repo scripts I am able to restrict create button but unable to achieve folder and content fragment restriction.

 

Kindly advise.

 

Thanks in advance.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Prashardan,

I think you could create custom render condition, which base on context will either show/hide specific element from Create menu like Content Fragment, Folder etc.

In other words your custom render condition will include entire logic related to group membership.

To add custom render condition you will have to overlay specific path for each action, e.g Content Fragment creation action button can be found under:

  • /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/createfragment

Below article describes step by step how to implement and use custom render condition - so you can follow it.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Prashardan,

I think you could create custom render condition, which base on context will either show/hide specific element from Create menu like Content Fragment, Folder etc.

In other words your custom render condition will include entire logic related to group membership.

To add custom render condition you will have to overlay specific path for each action, e.g Content Fragment creation action button can be found under:

  • /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/createfragment

Below article describes step by step how to implement and use custom render condition - so you can follow it.