Restrict component to be added to a page for specific users

Avatar

Avatar
Level 1
vajrec
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
vajrec
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
vajrec
Level 1

20-06-2021

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

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,329 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,329 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

20-06-2021

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

Answers (0)