Is it possible to get root permission using Magisk in Work Profile?
Choose User-independent option in Multiuser Mode Settings of Magisk app.

User profiles and multi users are managed inside OS, nothing to do with recovery.