REST API - candidateUser not working as expected

Hi,

I have tried getting all offered tasks of a user.
This user is in a candidate group of my process, but he is not a candidate user.
When I try to request the tasks like this:
GET “/task?candidateUser=userId”

I get an empty response.

In the docs for the parameter it is written that the parameter candidateUser:
“Only include tasks that are offered to the given user or to one of his groups”.
https://docs.camunda.org/manual/7.11/reference/rest/task/get-query/

I expected that I can get the offered tasks of the group, the user is part of.

Does candidateUser only work when the candidate user is set in the model or is it enough when the user is in the candidate group?

Thanks in advance for any help with this matter!

Hi @SLang,

candiateGroups and candidateUsers are separate entities. Users should be used if you have dedicated persons which should work on a tasks, maybe in a small company. Groups are used if you have departments that are responsible to work on the task.

The engine didn’t check if a user is part of the team if you query for candidateUser.

Hope this helps, Ingo

Hi @Ingo_Richtsmeier,
that explains why the query didn’t work.
But I think the docs are misleading, because the engine just checks
for the user and not his groups like the docs might imply.

Still thanks for your help I really appreciate it, Sebastian