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

Manage Publication only to preview server

Avatar

Level 2

In AEMaaCS, is there a way we can restrict authors to publish only to preview server instead of the publish instance?

 

We have enabled preview instance for our client so under the "Manage Publication" screen, the authors are able to (un)publish to both "Preview" and "Publish" instance. We dont want to authors to accidentally publish to "Publish" instance before publishing to "Preview" instance

1 Accepted Solution

Avatar

Correct answer by
Level 2

This depends on the access rights that are available for your author group. If your author group doesnt have access to replicate contents, you will have to write a custom workflow step where in a system user with replication access will publish the contents to preview on the author's behalf. 

 

If the author group has the necessary replication access, then you can simply customize the manage publication wizard to trigger the OOTB activation process. 

 

https://experienceleague.adobe.com/docs/experience-manager-64/developing/extending-aem/customizing-p...

View solution in original post

3 Replies

Avatar

Community Advisor

I would suggest triggering a workflow whenever an attempt is made to publish instances so as to avoid any accidental pushes.


Avatar

Correct answer by
Level 2

This depends on the access rights that are available for your author group. If your author group doesnt have access to replicate contents, you will have to write a custom workflow step where in a system user with replication access will publish the contents to preview on the author's behalf. 

 

If the author group has the necessary replication access, then you can simply customize the manage publication wizard to trigger the OOTB activation process. 

 

https://experienceleague.adobe.com/docs/experience-manager-64/developing/extending-aem/customizing-p...

Avatar

Level 3

The simple solution will be to create a custom workflow "Publish to Preview". Advise the authors to always use that workflow instead of OOTB publish/unpublish functionality. 

Also you will have to remove the "replicate" permission of the content authors so that they shall not be able to publish directly. 

 

The more advance solution is to implement custom code to catch replication events and display a confirmation  dialog for the users to ask whether they want to publish to preview or want to publish to external publisher.