Universal Editor in Adobe Experience Manager displays misleading publish success message for users without publish permissions
This article explains why users without publish permissions in Adobe Experience Manager (AEM) Universal Editor may see a Publish started successfully message even though their content is not published, and provides guidance on how to address this issue.
Description description
Environment
- Adobe Experience Manager (AEM)
- Universal Editor (all versions and deployment models)
Issue/Symptoms
- Users who do not have publish permissions, specifically the
crx:replicateprivilege, can see and select the Publish button in Universal Editor. - After attempting to publish content, these users receive a
Publish started successfullymessage. - The content is not published because the required permissions are missing.
- The AEM backend correctly blocks the replication request, but Universal Editor does not display an error or warning, which can cause confusion.
Cause
Universal Editor displays a generic success message when a publish request or workflow is initiated, regardless of whether the user has permission to complete the publication. AEM permissions block the actual replication, but the UI does not reflect this failure in real time.
Resolution resolution
Follow the steps below to resolve the issue:
-
Do not grant publish permissions (
crx:replicate) to users who should not be allowed to publish content directly. Granting this permission solely to suppress the message is not recommended, as it would allow unauthorized publishing. -
Hide the Publish option for restricted users:
-
To hide the Live Publish option for all users, add the following meta tag to the
<head>section of your page:<meta name="urn:adobe:aue:config:disable" content="publish-live" /> -
To hide all publishing options, use:
<meta name="urn:adobe:aue:config:disable" content="publish" /> -
If you want to hide publishing options only for specific users or roles, render the appropriate meta tag conditionally in your application logic so that only the intended users see it.
-
-
Implement an approval workflow:
- Configure a Request for Activation workflow so that authors without publish permissions can submit content for approval.
- Ensure that restricted users have permission to start the workflow and that the appropriate approver or publisher group is configured to review and activate the content.
- When an author submits a request, a workflow instance should be created, and the approver can complete the publication.
-
Communicate the limitation to users:
- Inform users that the
Publish started successfullymessage indicates that a publication workflow has been initiated, not that the content is live. For users without publish permissions, publication will only occur after approval by an authorized user.
- Inform users that the
-
After making these changes, test with a user who does not have publish permissions to ensure that the Publish option is hidden or that the workflow is correctly initiated and the misleading message is avoided or clarified.