Let's say I have "my-project" group. I need to assign permissions for this group in such a way that annotate or delete buttons in AEM assets toolbar should be visible on /content/dam/my-project/folder-a. However, annotate or delete buttons should not be visible on /content/dam/my-project/folder-b
Can anyone help me on how can I assign permissions for user group which varies on asset content path.
Any help is really appreciated!
Solved! Go to Solution.
Views
Replies
Total Likes
I don't think AEM has any OOTB permission for this particular use-case.
But, you can always add a custom JS file and include it in the asseteditor.
Categories of that file would be "cq.dam.asseteditor.v2".
Getting User Groups in Java:
ResourceResolver resourceResolver = getResourceResolver();
session = resourceResolver.adaptTo(Session.class);
UserManager userManager = ((JackrabbitSession) session).getUserManager();
Iterator < Authorizable > groupIterator = userManager.findAuthorizables("jcr:primaryType", "rep:Group");
I don't think AEM has any OOTB permission for this particular use-case.
But, you can always add a custom JS file and include it in the asseteditor.
Categories of that file would be "cq.dam.asseteditor.v2".
Getting User Groups in Java:
ResourceResolver resourceResolver = getResourceResolver();
session = resourceResolver.adaptTo(Session.class);
UserManager userManager = ((JackrabbitSession) session).getUserManager();
Iterator < Authorizable > groupIterator = userManager.findAuthorizables("jcr:primaryType", "rep:Group");