diff --git a/lib/url/url.js b/lib/url/url.js
index <HASH>..<HASH> 100755
--- a/lib/url/url.js
+++ b/lib/url/url.js
@@ -19,7 +19,7 @@ var crypto = require('../node/crypto'),
 var ImboUrl = function(options) {
     this.transformations = [];
     this.baseUrl = options.baseUrl;
-    this.user = options.user || options.publicKey;
+    this.user = typeof options.user === 'undefined' ? options.publicKey : options.user;
     this.publicKey = options.publicKey;
     this.privateKey = options.privateKey;
     this.extension = options.extension;
Allow explicitly setting user on URLs to null