Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Restrict component to be added to a page for specific users

Avatar

Level 1

Is there a way to restrict a specific user group to be able to add a component to a page? At a template level, the component should be allowed, but only specific authors should be allowed to add the component to a page

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

There is no way to restrict a component to add to a page, you can hide a component from the list but the user will be able to copy past existing components. Though you can disable the component editing for users based on path or a component

https://aemlab.blogspot.com/2018/11/aem-restrict-component-editing-and.html

 

if you want to go with this approach just create a sling Filter to disable editing

e.g. https://github.com/arunpatidar02/aem63app-repo/blob/master/java/XFFilter.java



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

There is no way to restrict a component to add to a page, you can hide a component from the list but the user will be able to copy past existing components. Though you can disable the component editing for users based on path or a component

https://aemlab.blogspot.com/2018/11/aem-restrict-component-editing-and.html

 

if you want to go with this approach just create a sling Filter to disable editing

e.g. https://github.com/arunpatidar02/aem63app-repo/blob/master/java/XFFilter.java



Arun Patidar