diff --git a/resources/node_resource.inc b/resources/node_resource.inc
index d65b0e2..38182c4 100644
--- a/resources/node_resource.inc
+++ b/resources/node_resource.inc
@@ -217,6 +217,12 @@ function _node_resource_create($node) {
     $node = $node['node'];
   }
 
+  if (!isset($node['name'])) {
+    //assign username to the node from $user created at auth step.
+    global $user;
+    $node['name'] = $user->name;
+  }
+
   // Validate the node. If there is validation error Exception will be thrown
   // so code below won't be executed.
   _node_resource_validate_type($node);
