Is a user or an user?

Proper grammar is to include a N prior to a word starting with a vowel sound. 'User' has a hard U that sounds like a Y, and therefore is a user.
Conversely, 'hour' has a silent H and would correctly be 'an hour'.
Even when you say it, it might sound correct like if you say an user you already hear and automatically know that it is wrong.