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”:

repositoryService.createProcessDefinitionQuery().startableByUser(“kermit”).latestVersion().list();

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

identityService.getPotentialStarterUsers

Hi @prs.parisa

How does your identityService.getPotentialStarterUsers call look like?

Here is an example how to use it:

Regards,
Simon

Thank you Simon

I use the method in the same way:
identityService.getPotentialStarterUsers(processDefinitionId);
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.