Server

HOWTO: Follow a Transition If User Is Member of a Group

This page is scheduled for review and update. Check back soon for updated content!

In workflows, you may want to have several paths on the workflow depending on the group of the user who launched to workflow.

The solution is to add the following test in the conditions of the transitions of a node

Fn.getPrincipal(workflowInitiator).isMemberOf("managers")

This expression will be true if the workflowInitiator is a member of the managers group. Replace the group by the one you need and "workflowInitiator" by any other user you would need. If you need to filter on the current user, you can use CurrentUser.getActingUser() as stated in the page Variables Available in the Automation Context.


4 days ago Manon Lumeau HOWTO naming cleanup
15 days ago manonlumeau Final review
5 years ago Solen Guitter 8
5 years ago Solen Guitter 6
5 years ago Solen Guitter 7
5 years ago Manon Lumeau 5
5 years ago Manon Lumeau 4
6 years ago Solen Guitter 3
6 years ago Frédéric Vadon 2
6 years ago Frédéric Vadon 1
History: Created by Frédéric Vadon

We'd love to hear your thoughts!

All fields required