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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Access Control on SPA Components (using React)

Avatar

Level 3

 

Hi,

 

After creating a login page in AEM, what is the best approach to manage access control on the components in the pages.

 

for example:

We have following 2 users,

user 1

user 2

 

AEM Page 1

  • Component 1 (User 1 and User 2 both can view)
  • Component 2 (User 1 only)
  • Component 3 (User 2 only)

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

we achieved this by creating the cug container component which basically a wrapper that has a dialog to add cug groups. Inside this other component can be drag and drop.

Make sure you load this using ajax at the run time otherwise you will have caching issues.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

we achieved this by creating the cug container component which basically a wrapper that has a dialog to add cug groups. Inside this other component can be drag and drop.

Make sure you load this using ajax at the run time otherwise you will have caching issues.