# System Keys. user.email works but user.id is NULL

**URL:** <https://community.dreamfactory.com/t/system-keys-user-email-works-but-user-id-is-null/2577>\
**Category:** Authentication & Security\
**Created:** [April 25, 2016, 6:53pm UTC](https://community.dreamfactory.com/t/system-keys-user-email-works-but-user-id-is-null/2577 "2016-04-25T18:53:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charliefinale](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@charliefinale](https://community.dreamfactory.com/u/charliefinale)\
**Post date:** [April 25, 2016, 6:53pm UTC](https://community.dreamfactory.com/t/system-keys-user-email-works-but-user-id-is-null/2577/1 "2016-04-25T18:53:18Z")

</div>

Hi, I refer to System Keys as described here

[https://wiki.dreamfactory.com/DreamFactory/Features/Lookups](https://wiki.dreamfactory.com/DreamFactory/Features/Lookups)

I am using several of these in a script like this

var user\_data;  
var user = event.request.payload;

user\_data ={‘resource’: [{ ‘DFUserID’ : [user.id](http://user.id),‘FirstName’: user.first\_name, ‘LastName’: user.last\_name, ‘Email’:user.email, ‘KnownAs’: user.display\_name } ] };

var send = platform.api.post(“hiyerDB/\_table/Users?fields=FirstName,LastName”, user\_data)

However user.email returns the email but [user.id](http://user.id), which I assume to be the ID field if one goes to Users in the DF Admin panel, returns NULL.

In my script I had assumed the line …

var user = event.request.payload

…allows access to all system variables starting with user (such as user.email, user.first\_name and therefore [user.id](http://user.id)), but I now think it only allows access to those parameters that were POSTed in the registration process, which does not include [user.id](http://user.id) since at the time of POSTing it is not defined.

So how do we access [user.id](http://user.id)? Indeed how do we access any of the other System Keys such as session.token for use in a script?
