Expand my Community achievements bar.

SOLVED

Permissions for usersgroups for pages

Avatar

Level 4

Hi Team

 

I am working on requirement where I have two groups of users like usergroup_a and usergroup_b.

I have few pages like page1, page2, page3.

 

I want page1 to be visible only to usergroup_a but not to usergroup_b.

page2 to visible only usergroup_b but not to usergroup_a

page3 to visible to both usergroup a and usergroup b. 

 

Any advice how to take up this requirement.

 

Thanks in advance

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Prashardan

I hope you would like to use these user groups on author: 

Ensure that the user groups usergroup_a and usergroup_b already exist in AEM. If not:

  1. Navigate to Tools > Security > Groups in AEM.
  2. Create usergroup_a and usergroup_b.
  3. Add the respective users to each group.

Configure page-level permissions to restrict access to specific groups via /useradmin

a. Restrict page1 to usergroup_a:

  1. Expand /content/your-site/page1
  2. Select Permissions for the page1 node.
  3. Allow usergroup_a to Read.
  4. Deny usergroup_b access (explicitly deny Read permissions).

b. Restrict page2 to usergroup_b:

  1. Expand  /content/your-site/page2
  2. Set Permissions as follows:
    • Allow usergroup_b to Read.
    • Deny usergroup_a access.

c. Allow Both Groups for page3:

  1. Expand /content/your-site/page3
  2. Set Permissions:
    • Allow usergroup_a and usergroup_b to Read.

Please let me know if this helps.

View solution in original post

2 Replies

Avatar

Level 7

Avatar

Correct answer by
Community Advisor

Hello @Prashardan

I hope you would like to use these user groups on author: 

Ensure that the user groups usergroup_a and usergroup_b already exist in AEM. If not:

  1. Navigate to Tools > Security > Groups in AEM.
  2. Create usergroup_a and usergroup_b.
  3. Add the respective users to each group.

Configure page-level permissions to restrict access to specific groups via /useradmin

a. Restrict page1 to usergroup_a:

  1. Expand /content/your-site/page1
  2. Select Permissions for the page1 node.
  3. Allow usergroup_a to Read.
  4. Deny usergroup_b access (explicitly deny Read permissions).

b. Restrict page2 to usergroup_b:

  1. Expand  /content/your-site/page2
  2. Set Permissions as follows:
    • Allow usergroup_b to Read.
    • Deny usergroup_a access.

c. Allow Both Groups for page3:

  1. Expand /content/your-site/page3
  2. Set Permissions:
    • Allow usergroup_a and usergroup_b to Read.

Please let me know if this helps.