Hello,
We use Camunda with the defaultUserPermissionNameForTask=TASK_WORK
We would like to remove the TASK_WORK authorization for a certain group and for a certain process. We implemented a tasklistener for CREATE. Under normal conditions when the usertask is created an authorization for the task for the candidate group is created. We would like to update the below authorization to READ only.
In the TaskListener we query the AuthorizationService but the list returns empty.
We tried creating a deny authorization for TASK_WORK but didn’t remove the TASK_WORK authorization. We realized that after we create the authorization we cannot query it back?
List<Authorization> authList = delegateTask.getProcessEngineServices().getAuthorizationService()
.createAuthorizationQuery().list();
Are we able to query and update authorizations in the TaskListener? If not how can we update the authorization?
Kind regards,
Elif