<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Best practice for storing additional metadata for users]]></title><description><![CDATA[<p dir="auto">I want to store additional information about users in my application - for example, which team they are part of. Is there a built-in way to associate metadata with users in FusionAuth, or is it better to use a separate database? And for the latter option, should I use a webhook for registration events so I know when to create a new user in the separate database?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://fusionauth.io/community/forum/topic/343/best-practice-for-storing-additional-metadata-for-users</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 18:01:58 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/343.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Aug 2020 20:08:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Best practice for storing additional metadata for users on Thu, 27 Aug 2020 13:24:01 GMT]]></title><description><![CDATA[<p dir="auto">You can use the <code>user.data</code> and <code>registration.data</code> fields to store arbitrary key value data.</p>
<p dir="auto">If the metadata is associated with the user, use <code>user.data</code>. If it is associated with the user's account for a given application, use <code>registration.data</code>.</p>
<p dir="auto">Note that this field is read/write via the API, but only readable via the administrative UI.</p>
<p dir="auto">Here are some notes about the limits of these fields: <a href="https://fusionauth.io/community/forum/topic/89/how-large-can-the-data-field-be-for-any-of-the-fusionauth-resources">https://fusionauth.io/community/forum/topic/89/how-large-can-the-data-field-be-for-any-of-the-fusionauth-resources</a></p>
<blockquote>
<p dir="auto">And for the latter option, should I use a webhook for registration events</p>
</blockquote>
<p dir="auto">If you want a separate database, that's the way to do it. Listen for a webhook and create the records then.</p>
<p dir="auto">Whether you should use the <code>data</code> fields or a separate database depends on what you are trying to do. The <code>data</code> fields are simpler and more tightly tied to the user records. You can also query them, but you'll be writing elasticsearch queries.</p>
<p dir="auto">If you'd rather write straight SQL or will be storing lots and lots of data about a user (for example, their entire login history for analytics), then a separate database might work better. Of course, that's another system to maintain, so more complexity is the tradeoff.</p>
]]></description><link>https://fusionauth.io/community/forum/post/1000</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/1000</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 27 Aug 2020 13:24:01 GMT</pubDate></item></channel></rss>