Expand my Community achievements bar.

Where I can see all the share link "link" already shared?

Avatar

Level 1

I need a way to see all the link already created for share an asset outside the Adobe DAM with the "Share Link" function. Is there a place to see all this link toghether? 

4 Replies

Avatar

Level 5

@ValentinoFo  Short answer is Yes

Steps to perform: (quick checklist)

  • Check for a built-in console first: In AEM go to Tools > Assets (or Tools > Assets > Shared Links) and look for “Shared Links” or “Shared Assets.” Newer AEM/Asset Share Commons installs sometimes include a specific UI showing all links.
  • If you use Asset Share Pages / Asset Share Commons: that package often has a page or admin view listing all public share links. Check its docs/UI.
  • If there’s no UI, use the repository:
    1. Create one sample share link on an asset.
    2. Open CRXDE Lite (http://<host>:<port>/crx/de) and browse to the asset node. Inspect nearby nodes and properties to find the property name that holds the share token/link (examples you might see: rep:shareToken, sling:shareToken, cq:sharedLink, or a node under /var or /content that holds metadata).
    3. Once you identify the property or node name, run a repository query (Query Builder or JCR-SQL2) to list all nodes that contain that property.

Example queries you can adapt

  • QueryBuilder (POST to /bin/querybuilder.json). If the property found is rep:shareToken, example: curl -u admin:admin -X POST "http://localhost:4502/bin/querybuilder.json"
    -d 'path=/content/dam'
    -d 'type=nt:base'
    -d 'property=rep:shareToken'
    -d 'property.operation=exists'
    -d 'p.hits=full'
    -d 'p.limit=-1'

  • JCR-SQL2 (in CRXDE Lite or via API). Example (adjust property name): SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE(s, '/content/dam') AND s.[rep:shareToken] IS NOT NULL

Notes and caveats

  • Property/node names differ by AEM version and any installed packages. Inspect one real share node first to avoid blind searching.
  • Shared links may also be represented by nodes under /var or /etc depending on customizations — include those paths in your queries if you don’t find results under /content/dam.
  • Running repo queries may require admin access. Be careful when running queries on large repositories (use p.limit).

Avatar

Level 1

Thank you, I check, but I can see only a list wihtout any option. I can only "unshare" but I can't see the link or the name of the asset, only this...

 

link share.png

Avatar

Level 5

Yes. It only shows the shared links generated. You will need to open the links to check the assets being shared. Adobe has designed it this way since each link share may contain more than 1 asset at a time. Hope this makes sense.

 

Feel free to reach out for additional questions.

Avatar

Level 1

Not in my case, it is only a list of shared file I can't do anything or see the link. Where I can see the shared links? I can't find a way.