Expand my Community achievements bar.

SOLVED

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 Accepted Solution

Avatar

Correct answer by
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

View solution in original post

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

Correct answer by
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!!!!!!!!!.