Refactor QueryPermissionsMethod to manage his own recordId if it has been set.