コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.
解決済み

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 受け入れられたソリューション

Avatar

正解者
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.

元の投稿で解決策を見る

1 返信

Avatar

正解者
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.