Skip to main content
Level 2
Oct 16, 2015 2:26 AM UTC
Solved

Restrict access to global components

 I want to restrict my global header and footer components to be edited by only a particular groups of users. How can I achieve this. These components will be included in my page component. I want only one group can edit these components for others, these components should be displayed as non editable. Please let me know how can I achieve this functionality

MshajiAccepted solution
Community Advisor
Oct 16, 2015 2:26 AM UTC

Create a group call it global admin and provide edit access for this group only. You can find more information at http://dev.day.com/docs/en/cq/current/administering/security.html

It has all the details you need for your requirements.

3 replies

Sham_HC
Level 10
Oct 16, 2015 2:26 AM UTC

From useradmin UI do not have option to configure it.  Use aclsetup[1] OR crxde light Or Crx explorer.

[1]    http://<host>:<port>/system/console/configMgr/com.day.cq.security.ACLSetup

Translate
MshajiCommunity AdvisorAccepted solution
Community Advisor
Oct 16, 2015 2:26 AM UTC

Create a group call it global admin and provide edit access for this group only. You can find more information at http://dev.day.com/docs/en/cq/current/administering/security.html

It has all the details you need for your requirements.

Translate
AmitVishwakarma
Community Advisor
Community Advisor
Jan 18, 2025 6:19 AM UTC

To restrict access to global header and footer components:

  1. Use ACLs (Access Control Lists): Set permissions for the components in CRX so only a specific group can edit them.
  2. Define Groups: Create a specific user group with editing permissions for these components.
  3. Modify Component Permissions: In the CRX repository, configure the permissions for the header/footer components to allow only the group to modify them.
  4. Use cq:EditConfig: Customize the editability of components via the cq:EditConfig property in the page component.
  5. Use Sling Post Servlet: You can also use the Sling Post Servlet to programmatically control access and restrict actions based on roles.
Translate
Amit Vishwakarma - Adobe Commerce Champion 2025 | 17x Adobe certified | 6x Adobe SME