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

permissions reverse replication

Avatar

Level 1

How can I do reverse replication of the permissions of a page?

1 Accepted Solution

Avatar

Correct answer by
Level 5

Some thoughts,

Permission usually have node type rep:ACL and rep:GrantACE,rep:DenyACE. You can set reverse replication agent on author under launcher to import those nodes as soon as they are created (You have to import user/group as well in that case).

If it is not time sensitive, you can use package manager API on publish instance to create package of ACLS on publish instance and import it on author periodically.

Or (Not tried it) If you are creating permission using API then at a same time you can reverse replicate permission node, using replicator API http://dev.day.com/docs/en/cq/5-6/javadoc/com/day/cq/replication/Replicator.html

Yogesh

View solution in original post

4 Replies

Avatar

Level 5

Dav,

 

Are you applying permission on page on publish dynamically  ? Make sure that you actually needs those permissions on author instance if not then don't do it. 

If your primary goal is to then distribute those permission to all publish instance after reverse replication then you have to make sure that you account for delay in replications.

Otherwise handle assigning permission to each publish instance separately. Use some kind of cookie or header logic to create permission if it does not exist already on that publish instance for that user.

For reverse replication see if this helps

http://www.wemblog.com/2011/10/how-to-set-up-usergroupprofile-reverse.html

http://helpx.adobe.com/cq/kb/HowToUseReverseReplication.html

Yogesh 

Avatar

Level 8

"You can set reverse replication agent on author under launcher to import those nodes as soon as they are created" 

Are you talking about the workflow launcher? ie. http://dev.day.com/docs/en/cq/current/workflows/wf-using.html#Starting%20Workflows%20When%20Nodes%20...

Here's the package manager documentation: http://dev.day.com/docs/en/crx/current/how_to/package_manager.html

scott

Avatar

Correct answer by
Level 5

Some thoughts,

Permission usually have node type rep:ACL and rep:GrantACE,rep:DenyACE. You can set reverse replication agent on author under launcher to import those nodes as soon as they are created (You have to import user/group as well in that case).

If it is not time sensitive, you can use package manager API on publish instance to create package of ACLS on publish instance and import it on author periodically.

Or (Not tried it) If you are creating permission using API then at a same time you can reverse replicate permission node, using replicator API http://dev.day.com/docs/en/cq/5-6/javadoc/com/day/cq/replication/Replicator.html

Yogesh

Avatar

Level 1

Thanks! the situation is the we establish the permissions in the publish instance, and now I dont know how to move them to the author instance.