...
The provided userId has to have the needed taskadmin-role, which can be configured in the taskana.properties
Claim configuration
You can enabled or disbale claiming of Camunda Tasks after a TASKANA task was claimed with the following boolean property:
taskana.adapter.camunda.claiming.enabled
TASKANA datasource and schema
...