Highlighted

Aem 6.4 how to retrict some page access using sling service

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

Highlighted

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.

Highlighted

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 🙂

Highlighted

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

Highlighted

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

Highlighted

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

Highlighted

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?