identityService.getPotentialStarterUsers returns empty list

I have a process in bpmn file:

<process id=“33” name=“myProcess” isExecutable=“true” flowable:candidateStarterUsers=“kermit” …

also when I get startable process it returns the process definition “myProcess”:


but when I get potential starter it returns nothing while it is supposed to return “kermit”:


Hi @prs.parisa

How does your identityService.getPotentialStarterUsers call look like?

Here is an example how to use it:


Thank you Simon

I use the method in the same way:
and it returns empty list.

I found the problem. if the user is not in the database I mean in user table the method will return empty list.