Hide Asset Metadata for all user except admin

Avatar

Avatar

sudesh_16

Avatar

sudesh_16

sudesh_16

17-02-2021

Hi,

 

I want to hide/disable metadata option(To import metadata CSV) for all the users except admins. How can I achieve this functionality?

 

Thanks,

Sudesh

Asset Metadata. Assets

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

davidjgonzalezzzz

Avatar

davidjgonzalezzzz

davidjgonzalezzzz

17-02-2021

You can overlay the menu node and add a rendition condition to it.

 

Overlay: /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/metadata at /apps/dam/gui/content/assets/jcr:content/actions/secondary/create/items/metadata

 

Add a rendition condition at: /apps/dam/gui/content/assets/jcr:content/actions/secondary/create/items/metadata/granite:rendercondition


You can do something like:

  • sling:resourceType: granite/ui/components/coral/foundation/renderconditions/privilege
  • privileges: jcr:all
  • path: /home/groups/a/administrators

You can make define rendition condition you want: https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/granite-ui... and https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/granite-ui...

 

I don't think there is anything that exposes the user name directly, but TBH, that's probably not the best approach. it's better to test a privilege on something relevant; even my jcr:all check on the administrators group path, is a bit of a hack, it was just an easy, well known/stable, path to check that (AFIAK) only admin user would have jcr:all on. 

 

Anyhow, first i'd double check that you actually want to only restrict this to the admin user (since ideally no one should be logging in w/ that user) and then define your render condition accordingly.

 

 

 

 

 

 

 

2021-02-17 at 10.00 AM.png

Answers (0)