csrutil disable
Restart computer
In the terminal, type
sudo open /Applications/TextEdit.app /System/Library/LaunchDaemons/com.apple.ManagedClient.enroll.plist
change
<key>com.apple.ManagedClient.enroll</key>
<true/>
to
<key>com.apple.ManagedClient.enroll</key>
<false/>
So that the changes take effect
I mean you're completely wrong but okay.
Im literally on Sonoma and this whole forum is specifically about Sonoma. Theres plenty of detailed instructions here so if you cannot figure it out dont deter other people from the solution while spreading incorrect information like its not possible on Sonoma because it clearly is.