Other Configuration Manager-related features and issues
Hello BelanMarek
From the error: "Service is onboarded to a different account. The device needs to be offboarded before onboarding to a different account." it seems that the device was already onboarded using a different account and the only solution would be to Offboard first the device and onboard again with the current account.
For the offboarding you can use the scripts provided by Microsoft here: https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/offboard-machines?view=o365-worldwide
-------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--