Hiding/disabling page properties or tabs by user group

Avatar

Avatar

tadijam47062732

Avatar

tadijam47062732

tadijam47062732

18-11-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

hamidk92094312

Employee

Avatar

hamidk92094312

Employee

hamidk92094312
Employee

20-11-2019

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

Answers (1)

Answers (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840
Arun_Patidar
MVP

21-11-2019

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