Remove Ability for Creators to Delegate Workflow | Community
Skip to main content
September 29, 2023

Remove Ability for Creators to Delegate Workflow

  • September 29, 2023
  • 2 replies
  • 659 views

There are a few spots in AEM 6.5.18 where users can delegate a workflow to other users. With our custom path based participant chooser configuration, the delegate piece doesn't work and we want to disable that feature. I am able to disable for users that can approve from the inbox (only complete, step back, open, and payload are available). In page editor, I am able to locate the statusbar information but I cannot seem to find the individual options "complete, step back, delegate, etc...). Some of the paths look like they may be deprecated but I'm not sure if I'm in the right spot.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

aanchal-sikka
Community Advisor
Community Advisor
September 30, 2023

Hello @dpeters1 

 

I guess you are trying to remove "Change Assignee" in Workflows filter in Timeline of Sites UI.

 

If yes, you need to overlay /libs/cq/gui/components/coral/common/admin/timeline/alerts/workflow/provider.jsp

Remove following piece of code:

if (delegates.hasNext()) { // no delegates available: skip change assignee button %><button is="coral-button" class="cq-common-admin-timeline-alerts-workflow-actions-button" data-rel="cq-common-admin-timeline-alerts-workflow-action-delegate"> <%= i18n.get("Change Assignee ABC") %> </button><% }

 

However, this would also take away the "Change Assignee" option from Admins as well.

Aanchal Sikka
dpeters1Author
October 2, 2023

@aanchal-sikka This has taken care of one of the spots. I am also trying to restrict Delegate from editor.html. When I navigate to /libs/wcm/core/content/editor/jcr:content/content/items/content/header/items/statusbar, statusbar doesn't have any options in the menu, which I was expected to find Complete, Step Back, Delegate, View Details.