Mobile device management (MDM) administrators can lock a Mac with a six-digit PIN and include a short message. After the command has been sent to the device, the device restarts and the user can see the message. The user can’t restart macOS until the PIN has been entered and validated by the Mac.
Note: Locking a Mac computer with Apple silicon requires macOS 11.5 or later.
Device lock for macOS is a security feature that allows administrators to remotely lock a Mac computer in case it gets lost, stolen, or misplaced. This feature helps to protect sensitive information and prevent unauthorized access to the device. When a Mac is locked, it displays a message on the login window and the user needs to enter a pin to regain access to the device. Here are some ways you can lock a computer.
You can lock a computer by clicking a device's menu > Lock
You can also lock multiple computers at a time
You can also lock the whole device group
Account lock is another feature in which you can lock an individual account. You can see more details here.