insert into secd.impersonator (
    impersonator_id
    , target_id
    , credential_id
    , created_at
) values (
  (select identity_id from secd.identity where identity_public_id = $1)
  , (select identity_id from secd.identity where identity_public_id = $2)
  , (select credential_id from secd.credential where credential_public_id = $3)
  , $4
);
