Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.
SOLVED

How to restrict page view with CUG when SAML authentication is configured

Avatar

Level 1

We are using SAML authentication to access our site. Within same content tree, I want to restrict access to some pages based on user group. The AEM groups are synced based on SAML response.

 

Is this possible by adding CUG without configuring Login Page? Is there another solution to achieve this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Community Advisor

Hi @abhijitthete 

Yes, you need to add CUG (Closed User Group) groups to the pages that are meant to be restricted.

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 1

I created a CUG and added required permission, enabled authentication but it did not worked. My structure is

 

/content/site  SAML authentication required for this path. User is added to groups available in SAML response. If user has GroupA, it is added in AEM GroupA.

 

Requirement particular page from /content/site should be accessible to users belonging to GroupA only

/content/site/pageA - This page should be accessible to users from GroupA only.

 

I tried editing pageA properties and added Authentication required, permissions for GroupA but it does not worked. Users not member of GroupA can still access pageA.

 

Avatar

Community Advisor

Hi @abhijitthete ,

 

Do you test it through publisher or dispatcher? 

 

If the 2nd option, you will need to check a cache. Probably you cache authorized data. Check the /allowAuthorized in the dispatcher configuration.

 

Best regards,

Kostiantyn Diachenko.

Avatar

Correct answer by
Community Advisor