If a macOS device has Activation Lock Enabled (See: Configuring Activation Lock) before being erased, it will reach the MDM Activation Lock screen upon restart.
With macOS, similar functionality to iOS and iPadOS applies. However, the macOS UI for Activation Lock is a bit different. macOS will not allow for the MDM Activation Lock Bypass code to be input on the main screen when the macOS device reboots. The default Activation Lock screen will only allow Apple ID or Managed Apple ID email and password combinations. To gain access to the MDM Activation Lock screen, the end-user must click on Recovery Assistant in the upper left-hand corner and select Activate with MDM Key. From here, the MDM Bypass Code can be typed into the device.
Initial Activation Lock Screen
Recovery Assistant Dropdown
MDM Activation Lock Bypass Code Input