Développer ma barre des réalisations de la Communauté.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.

RÉSOLU

How to remove edit permission of a dam asset. User should be able to upload/download from dam but should not edit.

Avatar

Level 4

I tried giving Read,create permission for /content/dam but it is not allowing to upload.If I give modify it is allowing user to edit the asset though I am able to upload.

1 solution acceptée

Avatar

Réponse correcte par
Administrator

Hi sureshy2015

One of the approach could be, creating of costume component for assets uploading/Downloading.

// Pre-requisite

Create a Data Structure listing all the custom permission for all users.

eg.  User ID       Mod_Edit

        aaaa           1

        bbbb           0

This component will check if user has particular permission or not, and behave accordingly.

Reference Link:-  https://helpx.adobe.com/experience-manager/using/developing-aem-osgi-bundles-jackrabbit.html (User Manager API)

Reference Link:- https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html (Custom Component for uploading of images, you need to create a logic according to your needs).

 

This way of doing the work will not allow user to edit the assets using this components, but they may edit it using other components (So create a templates having this component only).

 

I hope this will help you. I hope i am not missing on something.

 

Thanks and Regards

Kautuk Sahni

 

 

  



Kautuk Sahni

Voir la solution dans l'envoi d'origine

3 Replies

Avatar

Level 10

you should give read, create and modify for /content/dam

but give only read, create for your project specific folder under dam. ex: /content/dam/<project> . 

Avatar

Réponse correcte par
Administrator

Hi sureshy2015

One of the approach could be, creating of costume component for assets uploading/Downloading.

// Pre-requisite

Create a Data Structure listing all the custom permission for all users.

eg.  User ID       Mod_Edit

        aaaa           1

        bbbb           0

This component will check if user has particular permission or not, and behave accordingly.

Reference Link:-  https://helpx.adobe.com/experience-manager/using/developing-aem-osgi-bundles-jackrabbit.html (User Manager API)

Reference Link:- https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html (Custom Component for uploading of images, you need to create a logic according to your needs).

 

This way of doing the work will not allow user to edit the assets using this components, but they may edit it using other components (So create a templates having this component only).

 

I hope this will help you. I hope i am not missing on something.

 

Thanks and Regards

Kautuk Sahni

 

 

  



Kautuk Sahni

Avatar

Level 4

joking ?.Finally I will be uploading to project folder only without modify permission it is not allowing me to upload!!!!!!!!!.