Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Page Versioning not working with some permissions

Avatar

Level 3

I have given some permissions on page using actool as shown below because I don't want user to have "Move,delete,replicate,ACL" permisssions:

- path: /content/wknd/en/home/men
  permission: allow
  actions: modify,create
  privileges: jcr:lockManagement,jcr:versionManagement

 

But when I create version of this page and if in future I want to revert back to old version of that page, then while clicking on "Revert to this Version" throws error "ERROR: failed to revert version".

 

Please let me know what other permissions are required to use the versioning functionality properly?

1 Accepted Solution

Avatar

Correct answer by
Level 3

Delete is a combination of jcr:removeNode & jcr:removeChildNodes permissions. Here achieve/resolve above scenario we can use jcr:removeChildNodes as a privilege.

View solution in original post

7 Replies

Avatar

Community Advisor

Hi @uniqvaibhav ,

 

You need to give "Delete" permission as well to the user.

 

I was getting 500 error in local, while trying to revert to previous version (without Delete permissions), but on giving Delete permission, I could revert back successfully.

 

Thanks,

Chitra

Avatar

Level 3

Thank you for your response. My primary goal is to remove delete permission for user of certain group, so can't add delete permission. Can you please suggest any other option?

Avatar

Community Advisor

Hello,

To revert to older version, user should have Delete permissions. Enable the "Delete" permission and test again.

 

Thanks

Dipti

Avatar

Level 3
Thank you for your response. My primary goal is to remove delete permission for user of certain group, so can't add delete permission. Can you please suggest any other option?

Avatar

Community Advisor
Hi @uniqvaibhav aah Ok. let me try this on my local. will update you . Meanwhile you can also explore option mentioned here : https://aemexperience.wordpress.com/2020/03/07/aem-permission-tricks-remove-delete-access-without-im... .

Avatar

Correct answer by
Level 3

Delete is a combination of jcr:removeNode & jcr:removeChildNodes permissions. Here achieve/resolve above scenario we can use jcr:removeChildNodes as a privilege.