Search code examples
spring-bootcamundabpmnbusiness-process-managementcamunda-modeler

How to check user exist in Camunda via Java SDK?


I want to check user existence in Camunda java API. I asked this question from Chatgpt and said use Camunda client library. But i not found library of that or that method. Is there a way to solve this problem? I don't want to use password checker because this way id not accurate.


Solution

  • The API you are looking for is the IdentityService. It provides a query method:

    identityService.createUserQuery()
        .userId("id")
        .singleResult()