What is the difference between a microorganism and a pathogen?

a microorganism can or can not be harmful for the host body but a pathogen is a microorganism which is always harmful for the host body.so ALL MICROORGANISMS ARE NOT PATHOGEN BUT ALL PATHOGENS ARE MICROORGANISMS.