If you have proof of purchase (eBay receipt, etc.), reach out to the IT department whose MDM lock appears on the screen. Many will unlock it if you prove you are not the former employee.
Circumventing an MDM lock without proper authorization is a violation of:
If you unknowingly buy an MDM-locked device that belongs to a company, bypassing it can be considered handling stolen property in some jurisdictions.
If you were to attempt using the Rajaminus tool (again, not recommended without understanding the risks), typical steps found across forums include: samsung mdm unlock tool - rajaminus
Install Samsung USB drivers on your Windows PC.
Boot the Samsung device into Download Mode.
Open the Rajaminus-Odin (do not use official Odin, as it may reject the combination firmware). If you have proof of purchase (eBay receipt, etc
Load the combination firmware into AP slot and flash. Device will reboot into a special factory interface.
Enable USB debugging in the combination firmware (if not already).
Run the Rajaminus script – it will push commands via ADB:
adb shell pm disable com.samsung.android.knox.attestation
adb shell rm /data/system/mdm_policy.xml If you unknowingly buy an MDM-locked device that
Reboot and reflash stock firmware using official Odin.
Upon reboot, the device should present a standard Android setup without MDM lock.