Dear Members - I've come across a scenario. I have an AEM Page which contains 4 components. Based on the User restricted components must be displayed on the page.
NOTE: I am on AEM 6.4
Example:
One group of User - Can access certain components.
Second group of User - Can access other different components.
Can I achieve this using AEM Permission? Any advice on this is appreciated.
Thank you.
Solved! Go to Solution.
Views
Replies
Total Likes
HI,
What did you mean by accessing components?
This can be done by just removing permissions of that component from for those particular users, you can do groups segregation and add users on those groups ,which has permission to access those components.
you can do it with Java + HTL
<sly
data-sly-use.render
=
"com.my.package.RenderComp"
data-sly-test
=
"${render.isShown}"
>
....
</sly
>
Thanks
Arun
HI,
What did you mean by accessing components?
This can be done by just removing permissions of that component from for those particular users, you can do groups segregation and add users on those groups ,which has permission to access those components.
you can do it with Java + HTL
<sly
data-sly-use.render
=
"com.my.package.RenderComp"
data-sly-test
=
"${render.isShown}"
>
....
</sly
>
Thanks
Arun
Not really, let me re-iterate.
I have a Page, there are 4 component:
1. Component 1 & 2 - Should be visible to one user group.
2. Component 3 & 4 - Should be visible to another user group.
Thanks.
Is this not the scenario that Arun mentioned by setting permissions;
"This can be done by just removing permissions of that component from for those particular users, you can do groups segregation and add users on those groups ,which has permission to access those components."
Views
Replies
Total Likes
In order for this to work you will need to add a property jcr:mixinTypes with value rep:AccessControllable to your custom components.