When user with read-only permission tries to increment the number of retries of failed job from w process instance view (as depicted below), a misleading error message is returned:
Finished : Incrementing the number of retries finished with failures.
The expected error message is actually included in the REST response:
{ "type": "AuthorizationException", "message": "The user with id 'michal' does not have one of the following permissions: 'RETRY_JOB' permission on resource '5eae6b45-9eaa-11eb-8cbd-06214802035e' of type 'ProcessInstance' or 'RETRY_JOB' permission on resource 'Failed_Job' of type 'ProcessDefinition' or 'UPDATE' permission on resource '5eae6b45-9eaa-11eb-8cbd-06214802035e' of type 'ProcessInstance' or 'UPDATE_INSTANCE' permission on resource 'Failed_Job' of type 'ProcessDefinition'", "userId": "michal", "resourceName": null, "resourceId": null, "permissionName": null, "missingAuthorizations": [ { "permissionName": "RETRY_JOB", "resourceName": "ProcessInstance", "resourceId": "5eae6b45-9eaa-11eb-8cbd-06214802035e" }, { "permissionName": "RETRY_JOB", "resourceName": "ProcessDefinition", "resourceId": "Failed_Job" }, { "permissionName": "UPDATE", "resourceName": "ProcessInstance", "resourceId": "5eae6b45-9eaa-11eb-8cbd-06214802035e" }, { "permissionName": "UPDATE_INSTANCE", "resourceName": "ProcessDefinition", "resourceId": "Failed_Job" } ] }