Assign task to user which have two groups


#1

I want to assign task to users which have both group in candidate groups field.
For example: I have two groups : Group01, Group02, and one task : Task01.
User who can claim that task must be in both groups.
Is it possible to do in camunda modeler?


#2

In modeler, you can assign a task to single assignee or multiple candidate users or candidate groups or combination of both. But modeler won’t support verifying the users whether they are part of more than one group.

You can achieve this using Task Listener, by querying usergroups for users using IdentityService, and then you can assign that task to users who is part of more than one group