XWiki 11.1 instance: "Failed to execute the [velocity] macro" even as superadmin

superadmin works perfectly but what is important is not who view the velocity macro result, the right issue reported by the error is related to the author of that script who was not allowed to write scripts anymore.

Understood. But in this scenario, what would be the recovery process, since one cannot access anything in the Administer Wiki tool?