Asset Link Share feature in AEM | Community
Skip to main content
Level 2
May 21, 2018
Solved

Asset Link Share feature in AEM

  • May 21, 2018
  • 7 replies
  • 3938 views

Hi Everyone,

Is there is any configuration with which we can disable Assets Link Share functionality in Author?

Purpose is we don't want anyone to share our assets through this Link share as there is no way to track who viewed/downloaded assets.

Thanks.

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 arunpatidar

Hi,

You need to overlay /libs/dam/gui/content/assets/jcr:content/actions/selection node and need to add sling:hideChildren=adhocassetshare

As suggested by kautuksahni​ you can hide this for particular users as well or you can use granite:rendercondition

7 replies

arunpatidar
Community Advisor
Community Advisor
May 21, 2018

Hi

You can overlay the action selection node and try hideChildren for adhocassetshare but it'll hides share Link option for all the users including admin

Thanks

Arun

Arun Patidar
kautuk_sahni
Community Manager
Community Manager
May 23, 2018

I would recommend you using closed user group with AEM Assets for this use case.

Link:- Adobe Experience Manager Help | Using Closed User Groups with AEM Assets

-Kautuk

Kautuk Sahni
Antony679Author
Level 2
May 23, 2018

Using Closed User groups we can restrict access to asset folders, but my requirement is to disable "share link" future for the assets.

Antony679Author
Level 2
May 23, 2018

Thanks Arun. Any sample code is there to do this?

Thanks.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
May 23, 2018

Hi,

You need to overlay /libs/dam/gui/content/assets/jcr:content/actions/selection node and need to add sling:hideChildren=adhocassetshare

As suggested by kautuksahni​ you can hide this for particular users as well or you can use granite:rendercondition

Arun Patidar
Antony679Author
Level 2
May 24, 2018

Thanks Arun.

I was able to hide share option by adding sling:hideChildren=share ( adding sling:hideChildren=adhocassetshare didn't worked out). We are using AEM 6.2.

So  after adding at 3 places, I was able to disable share functionality for assets.

/apps/dam/gui/content/assets/jcr:content/actions/selection

/apps/dam/gui/content/assets/metadataeditor/jcr:content/actions

/apps/dam/gui/content/assetdetails/jcr:content/actions

Any idea why sling:hideChildren=adhocassetshare didn't worked in 6.2?

Now I will try closed user group to restrict this "share" option for assets.

Thanks.

arunpatidar
Community Advisor
Community Advisor
May 24, 2018

Hi,

adhocassetshare node is not available in AEM 6.2 and 6.3, instead of that share node is there, which you already hide.

Thanks

Arun

Arun Patidar