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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

sureshy2015
Level 4
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
kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

 

 

  

View solution in original post

0 Replies
Lokesh_Shivalingaiah
Community Advisor
Community Advisor

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

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

 

 

  

View solution in original post

sureshy2015
Level 4
Level 4

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