Expand my Community achievements bar.

SOLVED

Ask user to login when opening a certain page in publish instance

Avatar

Community Advisor

Hi All,

 

I have a requirement where I need to ask a user to login or redirected to the AEM login page whenever they try to open a page within a certain hierarchy. ( If they are not logged into AEM )

Example:

we-retail

/en

/en/home

en/home/about-us

 

Now I need to redirect the user to the login page whenever they try to access any page which is a child page of /en.

i.e. If user goes to /content/us/home, they should see the page .

But If they try to go to /content/en/home or /content/en/home/about-us or /content/en/.. they should be redirected to the login page (if they are not logged in, if they are , they should be able to see the page without logging in)

 

Thanks

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Anmol_Bhardwaj 

You can use CUG for your requirement.

more details you can find here

https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/cug.html?lang=e...

 

please go through this and let us know if you need any further information.

Thanks

dipti

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @Anmol_Bhardwaj 

You can use CUG for your requirement.

more details you can find here

https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/cug.html?lang=e...

 

please go through this and let us know if you need any further information.

Thanks

dipti