Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

User access based on Components in AEM page

Avatar

Avatar
Validate 1
Level 2
Tanmay137
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Tanmay137
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Tanmay137
Level 2

11-07-2018

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

13-07-2018

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."

Avatar

Avatar
Validate 1
Level 2
Tanmay137
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Tanmay137
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Tanmay137
Level 2

13-07-2018

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.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,139 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,139 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

11-07-2018

HI,

What did you mean by accessing components?

  • If you mean by accessing components while adding in parsys.

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.

Screen Shot 2018-07-11 at 10.49.07 PM.png

  • if you mean accessing component from runtime,

you can do it with Java + HTL

<sly data-sly-use.render="com.my.package.RenderComp" data-sly-test="${render.isShown}">

....

</sly>

Thanks

Arun