<?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[How to prevent storing first&#x2F;last name in FusionAuth user data from social login?]]></title><description><![CDATA[<p dir="auto">When using FusionAuth's hosted login pages with social login (e.g., Google), personal information like first name, last name, and full name are automatically stored in the FusionAuth user object.</p>
<p dir="auto">We want to store only the email address in FusionAuth and move all other personal information to our own profile service. What is the best approach to prevent or remove this data from FusionAuth while still using social login and registration?</p>
<p dir="auto">Is there a way to prevent FusionAuth from storing this information in the first place, or do we need to clear it after user creation?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3249/how-to-prevent-storing-first-last-name-in-fusionauth-user-data-from-social-login</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 01:26:15 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/3249.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Oct 2026 21:00:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to prevent storing first&#x2F;last name in FusionAuth user data from social login? on Mon, 12 Oct 2026 21:00:49 GMT]]></title><description><![CDATA[<p dir="auto">FusionAuth does not have a direct passthrough option to prevent storing user data from social login providers. However, there are several approaches to handle this:</p>
<h2>Option 1: Use a Reconcile Lambda (Recommended for Social Login)</h2>
<p dir="auto">For social login providers like Google, you can use a reconcile lambda to intentionally overwrite the user data with placeholder values before it's permanently stored:</p>
<pre><code class="language-javascript">function reconcile(user, registration, idToken) {
  // The idToken is the response from the tokeninfo endpoint
  // https://developers.google.com/identity/sign-in/web/backend-auth#calling-the-tokeninfo-endpoint
  
  user.firstName = "Purposely not set";
  user.lastName = "Purposely not set";
  user.fullName = "Purposely not set";
  user.imageUrl = "http://www.notset.com";
}
</code></pre>
<p dir="auto">This ensures that personal data from the social provider is replaced immediately during the reconciliation process.</p>
<h2>Option 2: Minimal Registration Form</h2>
<p dir="auto">For new user registrations (non-social), configure your registration form to collect only email and password, avoiding the collection of first/last name entirely.</p>
<h2>Option 3: Use Webhooks to Clear Data</h2>
<p dir="auto">Implement a <code>user.create.complete</code> webhook that listens for new user creation events, then use the FusionAuth User API to clear the personal data fields and move them to your profile service. Note that this approach means user data will briefly exist in FusionAuth before being cleared.</p>
<h2>Option 4: Lambda with External Fetch (Advanced)</h2>
<p dir="auto">You could use lambdas with fetch calls to move data to your profile service and set FusionAuth fields to <code>null</code>. However, this introduces latency due to network calls during authentication flows.</p>
<h2>For Existing Users</h2>
<p dir="auto">If you already have users with stored data, use the User API to programmatically clear the values for all existing users.</p>
]]></description><link>https://fusionauth.io/community/forum/post/8835</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8835</guid><dc:creator><![CDATA[FASupportBot]]></dc:creator><pubDate>Mon, 12 Oct 2026 21:00:49 GMT</pubDate></item></channel></rss>