How to remove edit permission of a dam asset. User should be able to upload/download from dam but should not edit. | Community
Skip to main content
sureshy2015
Level 4
October 16, 2015
Solved

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

  • October 16, 2015
  • 3 replies
  • 1495 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

 

 

  

3 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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> . 

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
October 16, 2015

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
sureshy2015
Level 4
October 16, 2015

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