Escape grant in user functions