Get all processDefinitions a user is authorized to start using AuthorizationService

Hello,
I would like to come up with a query which would return list of all ProcessDefinitions the currently logged in user is authorized to start. I was trying to find it in the AuthorizationService but I am unable to find a way to “join” the ProcessDefinitions and the Authorizations. Maybe I am just approaching it the wrong way.

Please could someone point me in the right direction.

Thanx

Hi Adam,

You can use the repository service like below

repositoryService.createProcessDefinitionQuery()
. startableByUser(“user1”).list();

Cheers,
Deivarayan

Yeah I saw this already but it doesn’t seem to be the preferred way based on Daniel Meyers comment HERE. And besides that it is not based on the AuthorizationService but on the .bpmn definition.