# If i use keycloak, do I need user table for my backend?

**URL:** <https://forum.keycloak.org/t/if-i-use-keycloak-do-i-need-user-table-for-my-backend/5988>\
**Category:** Getting advice\
**Tags:** authentication\
**Created:** [November 17, 2020, 9:14am UTC](https://forum.keycloak.org/t/if-i-use-keycloak-do-i-need-user-table-for-my-backend/5988 "2020-11-17T09:14:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominwong4](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dominwong4/32/1692_2.png) [@dominwong4](https://forum.keycloak.org/u/dominwong4)\
**Post date:** [November 17, 2020, 9:14am UTC](https://forum.keycloak.org/t/if-i-use-keycloak-do-i-need-user-table-for-my-backend/5988/1 "2020-11-17T09:14:45Z")

</div>

Let say I login via keycloak js inside react and able to get the user detail like id, email etc…

should i use that id to create one more user record inside my user table? or I dont need a user table, instead i use that id as a fk for other user-related data LIke:

Pattern 1:

Post:  
id,  
keycloak\_user\_id,  
body.

Pattern 2:  
User:  
id [use keycloak user id]

Post:  
id,  
USER.id  
body
