Permission for folder assets on tag basis | Community
Skip to main content
shikhasoni1
Level 3
January 27, 2025
Solved

Permission for folder assets on tag basis

  • January 27, 2025
  • 1 reply
  • 494 views

Hi,

 

I have a requirement in which if a workflow runs on a particular private folder (having all child as dam:assets) then it creats groups with the folder name and tag name (tag name is a String [ ] property in the folder schema  ) and then it will navigate through all the child assets and one by one it will match the tag of the asset (tag of the asset is a string [ ] property in metadata schema ) with the current folder tag .

if folder tag matched with the tag applied to that asset then that asset will be allowed read permission for that group.

 

The problem is suppose :

Two groups created one is "folder tag 1" group and anothr is "folder tag 2"  group

so folder tag 1 group people should ony see all the assets having tag 1 applied and folder tag 2 group should only see all the assets having tag 2 applied. How to achieve that programatically.

 

How can i deny all the child assets and give access to only those assets having that particular tag and also i have to give permission to parent folder on which the workflow will run, because a user can't view any child if the user doesn't have read permission on that parent folder as what i observed. 

And what will be the behavior if someone comes and create one new asset in that folder (with or withot tag)?

 

Please guide. 

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 Saravanan_Dharmaraj

@shikhasoni1 Please check out the same discussion happened here

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/can-i-apply-permissions-to-assets-and-metadata-fields/td-p/622971

Currently OOTB the permission cannot be set based on metadata/contents of the asset. Its all folder driven permission. May be as mentioned in the related blog reach out to Adobe and see what they say. IMO, customization based on tags metadata is cumbersome and you need to maintain the role vs metadata mapping. 

1 reply

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
January 27, 2025

@shikhasoni1 Please check out the same discussion happened here

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/can-i-apply-permissions-to-assets-and-metadata-fields/td-p/622971

Currently OOTB the permission cannot be set based on metadata/contents of the asset. Its all folder driven permission. May be as mentioned in the related blog reach out to Adobe and see what they say. IMO, customization based on tags metadata is cumbersome and you need to maintain the role vs metadata mapping.