Supposedly, SP.Web.ensureUser(user) works according to this MSDN link but I cannot seem to get it to work in my JS code.
While debugging, I can see that SP.Web exists and the user variable is populated with the user that I expect. However I get the following exception:
Object function (b,a){ULSdih:;SP.Web.initializeBase(this,[b,a])} has no method 'ensureUser'

