Insufficient privileges 16367 calling SET-DB-CLIENT or SET-CLIENT with a CP created by an external security system to a multi-tenant database
Insufficient privileges error 16367 is thrown when calling SET-DB-CLIENT or SET-CLIENT with a client-principal created by an external security system (such as the REST Adapter) to a multi-tenant database