Aem 6.4 how to retrict some page access using sling service

Avatar

Avatar

ashutot1

Avatar

ashutot1

ashutot1

27-06-2020

Hi team, how can we restrict some aem site page access .Can anyone suggest plz

 

hi all, thanks for the reply..i wanted to ask that can we retrict the page access for paricular user on publish and author both instance - 

example - suppose end user is accessing our website abc.com where they are accessing a page which we shpuld not show the enduser..any concept we have in aem to do so....i know ocking page but it is for retrict editing for two or more author sametime.

 

second query is  - can we apply clientlib only for specific component is there anypropery by which we can do so as we dont want to apply library on whole page

Replies

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883
Arun_Patidar
MVP

27-06-2020

Could you please explain use case in details? The above description is not clear? Please mentioned where you want to restrict page, Author/Publisher? Who can access those pages? etc.

Avatar

Avatar

Theo_Pendle

MVP

Avatar

Theo_Pendle

MVP

Theo_Pendle
MVP

28-06-2020

Hi @ashutot1,

I agree with @Arun_Patidar that your question lacks details 😕 I'm sorry, I'm sure many people would love to help you, but this is just not enough information to go on. I usually wouldn't answer a question like this but I happen to have already recorded a video for another question which might be useful to you: https://www.youtube.com/watch?v=Pq4kv8MxXUI.

If that doesn't help, please describe what you want to do in much more detail so we can lend you a hand 🙂

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

28-06-2020

Could you please add more details on this?

 

Avatar

Avatar

ashutot1

Avatar

ashutot1

ashutot1

29-06-2020

hi arun, thanks for the reply..i wanted to ask that can we retrict the page access for paricular user on publish and author both instance - 

example - suppose end user is accessing our website abc.com where they are accessing a page which we shpuld not show the enduser..any concept we have in aem to do so....i know ocking page but it is for retrict editing for two or more author sametime.

 

second query is  - can we apply clientlib only for specific component is there anypropery by which we can do so as we dont want to apply library on whole page

Avatar

Avatar

ashutot1

Avatar

ashutot1

ashutot1

29-06-2020

Hi Ankur, thanks for the reply..i wanted to ask that can we retrict the page access for paricular user on publish and author both instance - 

example - suppose end user is accessing our website abc.com where they are accessing a page which we shpuld not show the enduser..any concept we have in aem to do so....i know ocking page but it is for retrict editing for two or more author sametime.

 

second query is  - can we apply clientlib only for specific component is there anypropery by which we can do so as we dont want to apply library on whole page

Avatar

Avatar

ashutot1

Avatar

ashutot1

ashutot1

29-06-2020

hi  thanks for the reply..i wanted to ask that can we retrict the page access for paricular user on publish and author both instance - 

example - suppose end user is accessing our website abc.com where they are accessing a page which we shpuld not show the enduser..any concept we have in aem to do so....i know ocking page but it is for retrict editing for two or more author sametime.

 

second query is  - can we apply clientlib only for specific component is there anypropery by which we can do so as we dont want to apply library on whole page

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883
Arun_Patidar
MVP

29-06-2020

Hi, You can restrict the pages in Authors using ACL. https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/security.html#Permissionsin...
In publisher, you can use CUG to allow access to restricted pages, user has to login to see those pages.

https://docs.adobe.com/content/help/en/experience-manager-learn/assets/advanced/closed-user-groups.h...

 

 

Avatar

Avatar

ashutot1

Avatar

ashutot1

ashutot1

29-06-2020

Thanks arun and team,

anycase, sling service also used for this kind of purpose.

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883
Arun_Patidar
MVP

29-06-2020

You can do it using Sling filters but for that you need to disable the dispatcher caching for those pages so that request can hit publisher and sling filter can validate the access.

But how would you planing to identify the user type/segments?