Dear Community members,
I would like to know how can I set permissions (ACLs) in order to hide the "Synchronize live copy" option for a group of users outside a certain path.
I have a group of editors that are only allowed to edit pages under a certain path. I also want them to be unable to synchronize a live copy with its source if this source page is outside their assigned path.
Any help is deeply appreciated.
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Manuel, ACL's are not too granular to achieve what you need. But because you only need to hide the option, using the granite:render condition will achieve your requirement.
Basically, what you need to do is:
1. Create a custom renderCondition which will check the user logged in permission prior render the button
2. Assign the custom renderCondition to the button you want to hide.
Here is an excellent article with code samples explaining in detail what you need to do: https://jpsoares.medium.com/aem-granite-render-conditions-438c804b1e5a
Hi Manuel, ACL's are not too granular to achieve what you need. But because you only need to hide the option, using the granite:render condition will achieve your requirement.
Basically, what you need to do is:
1. Create a custom renderCondition which will check the user logged in permission prior render the button
2. Assign the custom renderCondition to the button you want to hide.
Here is an excellent article with code samples explaining in detail what you need to do: https://jpsoares.medium.com/aem-granite-render-conditions-438c804b1e5a
Hello @manuel_óscars89 -
In AEM as a Cloud Service, the permission that controls synchronization of live copies is typically associated with the "Replicate" permission. To restrict the "Synchronize live copy" option, you would remove or deny the "Replicate" permission for the paths outside the allowed path.
Here's is how to remove or deny the "Replicate" permission:
1. Navigate to the Permissions Console.
2. In the Permissions Console, create a new ACL entry or modify an existing one that controls the permissions for the group of users you identified.
3. Within the ACL entry, grant the necessary permissions for the allowed path (let's say : "/content/mysite"). Here's how to do it:
4. Configure the ACL entry to restrict permissions for paths outside the allowed path (let's say outside: "/content/mysite") and remove or deny the "Replicate" permission. Here's how to do it:
5. Associate the ACL entry you created or modified with the group of users you identified earlier. Here's how to do it:
6. Save the ACL entry and test the configuration.
Views
Likes
Replies
Views
Likes
Replies