CamunClient Unauthorized

I am using Camunda 8.8 as C8run.exe and springboot starter. Now, I am trying to fetch all user task using below code but throwing “Unauthorised” 401 error.
Any idea? why looking for auth if accessing directly service layer instead of API call?
How to do?

List<UserTask> taskList = this.camundaClient.newUserTaskSearchRequest().send().join().item()

NOTE: I have active user task in camunda tasklist UI

TIA.

The 401 Unauthorized error occurs because your Camunda client needs authentication configuration for the REST API calls. I found the following relevant resources:

Does this help? If not, can anyone from the community jump in? :waving_hand:


:light_bulb: Hints: Use the Ask AI feature in Camunda’s documentation to chat with AI and get fast help. Report bugs and features in Camuda’s GitHub issue tracker. Trust the process. :robot:

Not helpful.