# Storing data for users

**URL:** <https://community.dreamfactory.com/t/storing-data-for-users/2915>\
**Category:** Users & Roles\
**Created:** [June 30, 2016, 2:39pm UTC](https://community.dreamfactory.com/t/storing-data-for-users/2915 "2016-06-30T14:39:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Gudmundur\_Stefansson](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@Gudmundur\_Stefansson](https://community.dreamfactory.com/u/Gudmundur_Stefansson)\
**Post date:** [July 1, 2016, 11:55am UTC](https://community.dreamfactory.com/t/storing-data-for-users/2915/4 "2016-07-01T11:55:11Z")

</div>

Limiting the role to stored procedures sounds like it kinda defeats the purpose of using dreamfactory. The main reason for using it is to get the REST API.

So far I’ve tried to create a table, mapping [user.id](http://user.id) to SSN, and populating the table on user.register.post.post\_process. I managed to write the SSN to the table, but not the [user.id](http://user.id).

Another thing that I tried, which would make things a lot simpler if I got it to work, was to create a lookup key for the user on user.register.post.post\_process. I tried doing it according to [this](https://community.dreamfactory.com/t/lookup-key-value-in-database/1157/4), but it didn’t work.

Both approaches would work if I could get/set lookup keys for users via scripting, but I still haven’t found a way to do that.

---

_[View the full topic](https://community.dreamfactory.com/t/storing-data-for-users/2915)._
