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.