Description
The permission sought when deleting from system:prepareds is cluster.bucket[prepareds].n1ql.delete!execute, which is wrong. Similar permissions are also sought for completed_requests and active_requests. And the permissions don't match what is used for the corresponding REST APIs, namely cluster.n1ql.meta!read.
This is a spin-off from MB-24683.