MDM Lock command giving error MDMClientError:71 on Monterey 12.0.1

I registered MacOS 12.0.1 to my MDM server and installed MDM profiles successfully and when I send a lock command to the device it is not locking the device . The error message is as follows. (iOS, iPadOS devices operate normally.) CommandUUID "CommandUUID" ErrorChain ErrorCode 71 ErrorDomain MDMClientError LocalizedDescription Command received for: <User: 501>; but restricted to: MDMClientError:71 NotOnConsole Status Error UDID "UDID" UserID "UserID" UserLongName mdmremote UserShortName mdmremote

I would appreciate it if you could let me know what to refer to.

Replies

I think that as follows from your error, the command was sent via user channel but should be sent via device channel according to Apple Documentation https://developer.apple.com/documentation/devicemanagement/lock_a_device