Hiding/disabling page properties or tabs by user group | Community
Skip to main content
tadijam47062732
Level 3
Nov 18, 2019 2:33 PM UTC
Solved

Hiding/disabling page properties or tabs by user group

Is there a way to show/hide page properties or tabs based on the user group?

It is also necessary to ensure that hiding or disabling of fields does not cause data to be deleted on submission of the dialog.

AEM 6.5, SPA + React

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Hamid1350Accepted solution
Employee
Nov 20, 2019 5:49 PM UTC

Check and verify if you can achieve this by implementing ACL's i.e. jcr:modifyProperties, for the user or group ?   See privileges here:

User, Group and Access Rights Administration

2 replies

arunpatidar
New Participant
Nov 21, 2019 6:48 PM UTC

Hi,

It is possible, you just need to write custom renderer which will check if the user belongs to a particular group, it will return true otherwise false.

Example

AEM - Granite Custom Render Conditions using Servlet

How to get user group -

aem63app-repo/SimpleGetGroup.java at master · arunpatidar02/aem63app-repo · GitHub 

Translate
Arun Patidar
Hamid1350Accepted solution
Employee
Nov 20, 2019 5:49 PM UTC

Check and verify if you can achieve this by implementing ACL's i.e. jcr:modifyProperties, for the user or group ?   See privileges here:

User, Group and Access Rights Administration

Translate