Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM assets enable download button based on user group permissions

subsul1
Level 2
Level 2

AEM as a cloud service 6.5

I'm looking at directions to disable asset download based on user groups permissions.

There are two download buttons in the assets console

- one in the top rail when you select an asset

- another as an icon on the asset card

 

I can think of overlaying the node to define custom behaviour

1) Can you please point me to the node which needs to be overlayed ?

2) How do we toggle this behaviour for different user groups. I'd like to set just one group to have download restriction and the rest of the groups can download.

 

Any sample code, references will be greatly appreciated.

Thanks in advance

1 Accepted Solution
manpreetk908
Correct answer by
Level 3
Level 3

Hi,

You can refer to https://experienceleague.adobe.com/docs/experience-manager-65/assets/managing/download-assets-from-a... and try to disable the asset download servlet.

 

If you don't want to show only the download button, you can try to add deny permissions for the download node (or preferably higher level hierarchy) as per your user group. Eg. deny for /libs/dam/gui/content/assets/jcr:content/actions/selection/download

 

Regards,

Manpreet

View solution in original post

2 Replies
manpreetk908
Correct answer by
Level 3
Level 3

Hi,

You can refer to https://experienceleague.adobe.com/docs/experience-manager-65/assets/managing/download-assets-from-a... and try to disable the asset download servlet.

 

If you don't want to show only the download button, you can try to add deny permissions for the download node (or preferably higher level hierarchy) as per your user group. Eg. deny for /libs/dam/gui/content/assets/jcr:content/actions/selection/download

 

Regards,

Manpreet

View solution in original post