Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Hiding/disabling page properties or tabs by user group

Avatar

Avatar
Validate 1
Level 2
tadijam47062732
Level 2

Likes

7 likes

Total Posts

28 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
tadijam47062732
Level 2

Likes

7 likes

Total Posts

28 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 5
View profile
tadijam47062732
Level 2

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
Contributor
Employee
hamidk92094312
Employee

Likes

102 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

102 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile
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
Coach
MVP
Arun_Patidar
MVP

Likes

1,282 likes

Total Posts

3,156 posts

Correct Reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,282 likes

Total Posts

3,156 posts

Correct Reply

891 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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