Ask user to login when opening a certain page in publish instance | Community
Skip to main content
Anmol_Bhardwaj
Community Advisor
Community Advisor
July 21, 2021
Solved

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

  • July 21, 2021
  • 1 reply
  • 903 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dipti_Chauhan

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=en

 

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

Thanks

dipti

1 reply

Dipti_Chauhan
Community Advisor
Dipti_ChauhanCommunity AdvisorAccepted solution
Community Advisor
July 21, 2021

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=en

 

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

Thanks

dipti

Anmol_Bhardwaj
Community Advisor
Community Advisor
July 21, 2021
Thanks a lot