Applying a theorem due to Diederich and Ohsawa on weighted Bergman kernels, we characterize some Hartogs domains by their holomorphic automorphisms.