Expand my Community achievements bar.

SOLVED

Permission for folder assets on tag basis

Avatar

Level 4

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. 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@shikhasoni1 Please check out the same discussion happened here

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/can-i-apply-permiss...

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. 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@shikhasoni1 Please check out the same discussion happened here

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/can-i-apply-permiss...

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.