I am using AEM 6.5 , and I need to set permissions for different user groups to only access certain folders in DAM depending upon some rules. I have been trying to find the right example where this has been implemented but was not able to find it. Can you please point me in the right direction.
I want to get user groups and and users in Java through JCR and their permissions and add/remove permissions through Java only.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@Anmol_Bhardwaj As you want to achieve it through the java code then you can user the userManager API to get the user and the groups and later you can add the permissions.
UserManager userManager = resolver.adaptTo(UserManager.class);
From userManager get the groups.
Group Group1 = (Group) userManager.getAuthorizable(CONTENTAUTHOR);
Thank You.
Keshav Chaurasiya
@Anmol_Bhardwaj As you want to achieve it through the java code then you can user the userManager API to get the user and the groups and later you can add the permissions.
UserManager userManager = resolver.adaptTo(UserManager.class);
From userManager get the groups.
Group Group1 = (Group) userManager.getAuthorizable(CONTENTAUTHOR);
Thank You.
Keshav Chaurasiya
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies