I worked for a company that was forcing a MDM on employees a few years back. I went ahead and wiped it and installed Cyanogenmod instead of the stock android rom. My phone was then incompatible with the MDM so I was no longer required to install it. I don't think it would of been able to do all that much even if it managed to install.