You would have to disable handle sql injection for the macro, but you are setting yourself up for sql injection passing a querystring result directly into a query like that.
Your macro would be something like this {% ... |(handlesqlinjection)false |(identity)GlobalAdministrator%}
from the docs
I wouldn't recommend doing it that way though.