They did nothing but by Joseph's command or permission.
Related Commentaries of Genesis 39:22
Genesis 39:22
22 And the keeper of the prison committed to Joseph's hand all the prisoners that were in the prison; and whatsoever they did there, he was the doer of it.