Skip to main content
Level 5
Dec 1, 2022 6:36 PM UTC
Solved

Page Properties Read Only Mode

Hi Team,

 

Is there any way that only admin group (A) can modify Page Properties whereas other Editors Group (B) only can see them in READ ONLY Mode.

 

I know that using Render Condition, we can show/hide based on user/group. But how to play with Permission to achieve above.

 

BR,

KTNR

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aanchal-sikka
aanchal-sikkaAccepted solution
Community Advisor
Dec 4, 2022 6:39 PM UTC

Restrict write access to a property (example:pageTitle) by following steps

  • Open CRXDE
  • Browse to /content/we-retail/language-masters/en
  • Click on the Access Control tab
  • Click the green plus
  • Select <some_group> as the principal
  • Select Deny
  • Select rep:write as the privilege
  • Open the Advanced section
  • In the rep:glob field enter */pageTitle
  • Click OK
  • Click Save All

If a user from configured group, will try to update pageTitle, they would get following error:

However, they would be able to save other properties

Aanchal Sikka

4 replies

B_Sravan
Community Advisor
Community Advisor
Dec 1, 2022 6:52 PM UTC

Hi @arvind-1 ,

you can give only read permission to the template for the other users through user management and no need to use render conditions to show/hide to certain users, please leverage CUG(closed user group) feature for the same.

User management and administering

CUG

Thank you.

-Sravan

Translate
joerghoh
Adobe Employee
Adobe Employee
Dec 3, 2022 3:15 PM UTC

Page properties are stored in the page/jcr:content node, so you should disallow the privilege "writeProperties" on this node (use wildcard ACLs for it at best, see [1]).

 

[1] https://jackrabbit.apache.org/oak/docs/security/authorization/restriction.html

Translate
arvind-1Author
Level 5
Dec 4, 2022 5:24 PM UTC

@joerghoh @b_sravan

Thank you for Reply.

But Requirement is "NOT ALL, but only few Page Properties should be in read only mode for GROUP B".

Translate
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
Dec 4, 2022 6:39 PM UTC

Restrict write access to a property (example:pageTitle) by following steps

  • Open CRXDE
  • Browse to /content/we-retail/language-masters/en
  • Click on the Access Control tab
  • Click the green plus
  • Select <some_group> as the principal
  • Select Deny
  • Select rep:write as the privilege
  • Open the Advanced section
  • In the rep:glob field enter */pageTitle
  • Click OK
  • Click Save All

If a user from configured group, will try to update pageTitle, they would get following error:

However, they would be able to save other properties

Translate
Aanchal Sikka