Adobe Experience Manager (AEM) Assets lets you share assets, folders, and collections as a URL with members of your organization and external entities, including partners and vendors. Sharing assets through a link is a convenient way of making resources available to external parties without them having to first log in to AEM Assets.
You require Edit ACL permission on the folder/asset you want to share as a link.
Before you share a link with users, ensure that Day CQ Mail Service is configured. An error occurs if you attempt to share a link without first configuring Day CQ Mail Service.
An asset link is auto-created in the Share Link field. Copy this link and share it with the users. The default expiration time for the link is one day.
Alternatively, proceed to perform steps 3-7 of this procedure to add email recipients, configure the expiration time for the link, and send it from the dialog.
If you want to share links from your AEM Author instance to external entities, ensure that you only expose the following URLs (which are specifically used for link sharing) for GET requests only:
- <AEM Server>/linkshare.html
- <AEM Server>/linksharepreview.html
- <AEM Server>/linkexpired.html
Block other URLs to ensure that your Author instance is secure.
If a shared asset is moved to a different location, its link stops working. Recreate the link and re-share with the users.
From the web console, open the Day CQ Link Externalizer configuration and modify the following properties in the Domains field with the values mentioned against each:
For the local and author properties, provide the URL for the local and author instance respectively. Both local and author properties have the same value if you run a single AEM author instance. For publish, provide the URL for the publish instance.
In the email address box of the Link Sharing dialog, type the email ID of the user you want to share the link with. You can also share the link with multiple users.
If the user is a member of your organization, select the user's email ID from the suggested email IDs that appear in the list below the typing area. For an external user, type the complete email ID and then select it from the list.
To enable emails to be sent out to users, configure the SMTP server details in Day CQ Mail Service.
If you enter an email ID of a user that is not a member of your organization, the words "External User" are prefixed with the email ID of the user.
Click/tap the shared asset to generate a preview of the asset. Click/tap Back on the toolbar to close the preview and return to the Marketing Cloud page. If you have shared a folder, click/tap Parent Folder to return to the parent folder.
You can generate the preview of assets of specific MIME types only. These include:
For assets of other MIME types, you can only download the assets.
A message confirms that you unshared the asset. In addition, the entry for the asset is removed from the list.
If you a non-administrator user, you require Read permissions at /var/dam/share to be able to view the shared links.
Click the Edit icon beside the service, and configure the following parameters for Day CQ Mail Service with the details mentioned against their names:
- SMTP server host name: email server hostname
- SMTP server port: email server port
- SMTP user: email server usename
- SMTP password: email server password
When you download assets from the link shared using the Link Sharing feature, AEM compresses the entire asset hierarchy from the repository and then returns the asset in a ZIP file. However, in the absence of limits to the amount of data that can be compressed in a ZIP file, huge amounts of data is subjected to compression, which causes out of memory errors in JVM. To secure the system from a potential denial of service attack due to this situation, configure the maximum size using the Max Content Size (uncompressed) parameter for Day CQ DAM Adhoc Asset Share Proxy Servlet in Configuration Manager. If uncompressed size of the asset exceeds the configured value, asset download requests are rejected. The default value is 100 MB.