Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Restrict component to be added to a page for specific users

vajrec
Level 1
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
Arun_Patidar
Correct answer by
Community Advisor
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

View solution in original post

1 Reply
Arun_Patidar
Correct answer by
Community Advisor
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

View solution in original post