Expand my Community achievements bar.

Nomination window for the Adobe Community Advisor Program, Class of 2025, is now open!
SOLVED

Restrict access to global components

Avatar

Level 2

 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

1 Accepted Solution

Avatar

Correct answer by
Level 9

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.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 9

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.

Avatar

Level 10

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

Avatar

Level 7

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.