Simply

Grant analyze any to the_user;

will do it.

Thank you, anyway.