如何通过Java SDK在Camunda中检查用户是否存在?

huangapple go评论47阅读模式
英文:

How to check user exist in Camunda via Java SDK?

问题

我想在Camunda Java API中检查用户是否存在。我从ChatGPT询问了这个问题,并说要使用Camunda客户端库。但我没有找到该库或该方法。是否有解决这个问题的方法?我不想使用密码检查器,因为这种方式不准确。

英文:

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.

答案1

得分: 1

你正在寻找的API是IdentityService。它提供了一个查询方法:

identityService.createUserQuery()
    .userId("id")
    .singleResult()
英文:

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

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

huangapple
  • 本文由 发表于 2023年4月17日 15:57:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76032869.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定