AEM Assets · updated

How do asset expiry and licence agreements (DRM) work in AEM Assets?

AEM Assets has two rights controls. Expiry: when an asset passes its expiry date it is unpublished automatically, and users without administrator permissions can no longer edit, copy, move, publish or download it. Licence agreements: an asset marked as protected cannot be downloaded until the user accepts its licence. An asset is protected when its metadata points to a licence page or holds the licence text.

In plain words

A stock photo is often licensed for a year. After that, using it is a breach. Expiry lets you put that end date on the asset so the system takes it down for you. A licence agreement is the other half: before someone downloads a restricted file, they see the terms and have to agree.

Where expiry shows

PlaceWhat you see
Card viewA flag on the card of an expired asset
List viewAn 'Expired' banner in the Status column
TimelineThe expiry status of the selected asset
References rail'Asset is Expired', or 'Asset has Expired Sub-Assets' for a compound asset
SearchThe Expiry Status filter, with the option Expired

What makes an asset protected

  • The metadata property xmpRights:WebStatement points to the path of the page that holds the licence agreement, or
  • The metadata property adobe_dam:restrictions holds the licence agreement as raw HTML.

Adobe says the old location /etc/dam/drm/licences is deprecated and recommends storing licence pages under /apps/settings/dam/drm/licenses or /conf/*/settings/dam/drm/licenses.

The expiry scheduler

A scheduled job detects expired assets and the compound assets that reference them. A compound asset shows as expired only after the job has next run. On Cloud Service the job is configured with an OSGi configuration file committed to the Cloud Manager Git repository. Adobe's example runs the job at midnight, handles up to 100 expired assets per run, and can email the person who uploaded the asset.

  • cq.dam.expiry.notification.scheduler.istimebased: true runs the job at the time in the timebased rule; false runs it every so many seconds, set in the period rule.
  • asset_expired_limit: the most assets expired in one run.
  • send_email: true emails the asset's creator when it expires.

com.day.cq.dam.core.impl.ExpiryNotificationJobImpl.cfg.json (Adobe's example)

{
  "send_email":"false",
  "asset_expired_limit":"100",
  "prior_notification_seconds":"86400",
  "cq.dam.expiry.notification.url.protocol":"http",
  "cq.dam.expiry.notification.scheduler.istimebased":"true",
  "cq.dam.expiry.notification.scheduler.period.rule":"10",
  "cq.dam.expiry.notification.scheduler.timebased.rule":"0 0 0 * * ?"
}

How to set it up

  1. Agree which assets have an end date and which need a licence shown before download.
  2. Set the expiry date on each licensed asset.
  3. Commit the expiry job configuration to your Cloud Manager repository and deploy it through the pipeline.
  4. Create licence pages under /apps/settings/dam/drm/licenses or /conf/*/settings/dam/drm/licenses.
  5. On each protected asset, point xmpRights:WebStatement at its licence page.
  6. Test as a non-administrator: an expired asset should be locked, and a protected asset should show the licence before Download is enabled.

Related tools and pages on this site

Questions

What can a normal user do with an expired asset?

Adobe says a user without administrator permissions cannot edit, copy, move, publish or download an expired asset.

Is an expired asset removed from the website?

Adobe says the expiry information ensures the published asset is automatically unpublished when it expires.

Can I accept licences for several assets at once?

Yes, in the download dialog's licence pane: select the protected assets in the list and choose Agree. Download is enabled once the agreements are accepted.

Why does a compound asset not show as expired yet?

It appears as expired only after the scheduler has next run and detected the expired sub-asset.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one AEM Assets question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →