Expand my Community achievements bar.

SOLVED

Make Share link button for assets visible for all users with link

Avatar

Level 1

Hi everyone, I want to enable share link button for assets visible for all users. Any idea how we can do it In adobe cloud? As a non-admin user, I am not able to see 'Share link' button. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hey,

This path is the one that dictates the button from the action bar menu and you should overwrite it as well: /libs/dam/gui/content/assetdetails/jcr:content/actions/adhocassetshare/granite:rendercondition

This is working fine for me

EstebanBustamante_0-1712151411076.png

Hope this helps



Esteban Bustamante

View solution in original post

5 Replies

Avatar

Community Advisor

Hi, 

You have to overwrite the granite:rendercondition at this location: /libs/dam/gui/content/assetdetails/jcr:content/actions/share/items/adhocassetshare to allow everyone to see the button.

You can find information about how to use and how granite:renderconditions works here: Granite UI Render Conditions.

Additionally, you can refer to this article for more details: AEM Granite Render Conditions.

 

Hope this helps.



Esteban Bustamante

Avatar

Level 1

Thanks Estaben for your input. I tried overlaying the folder as you shared and added the user group to be allowed for sharing link (test being a user group in below screenshot) but I am not able to see the Share link button. Thank you!

Screenshot 2024-04-03 at 5.35.08 PM.png

Avatar

Correct answer by
Community Advisor

Hey,

This path is the one that dictates the button from the action bar menu and you should overwrite it as well: /libs/dam/gui/content/assetdetails/jcr:content/actions/adhocassetshare/granite:rendercondition

This is working fine for me

EstebanBustamante_0-1712151411076.png

Hope this helps



Esteban Bustamante

Avatar

Level 1

this worked, thank you Estaban! 
However, I had to give Edit Acl permission for the user in order to view share link button on both asset selection and asset details page, is there any way we can allow all the users from particular groups to see and use the share link button. Also, on asset details page, without permissions we are not able to see link inside 'Share Link' dialog. Attached ss for reference.

Avatar

Administrator

@UnmeshKa I hope the AEM community has been helpful. We look forward to your return as either a learner or a contributor. The community grows with SMEs like you. Invite your AEM peers to contribute too. Happy AEM learning!



Kautuk Sahni