<?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[Import Users; don&#x27;t error on the existing ones]]></title><description><![CDATA[<p dir="auto">I'm relative new to FusionAuth but it's quite a good system so far. Only I can't seem to do is import users correctly with my current setup. The setup is that I don't know from an N amount of import files which are all ready in imported. So it could be when I call<br />
<a href="https://fusionauth.io/docs/v1/tech/apis/users/#import-users" rel="nofollow ugc">Import users</a> that the email and/or username is all ready present and the whole import is canceled. This is now ideal for me, I really would like to just skip the ones that are already present.</p>
<p dir="auto">Does anyone have an idea to do this? Would it make sense to first query the API to know which of the usernames and e-mails are present.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/1165/import-users-don-t-error-on-the-existing-ones</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 10:14:11 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/1165.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Jul 2021 15:17:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Import Users; don&#x27;t error on the existing ones on Tue, 03 Aug 2021 18:11:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/974">@casper</a>!</p>
<p dir="auto">Welcome to the community.  This is working as designed.  The import API is currently designed to only write new records to the database and not check if the record is already duplicated.  This is partly for performance reasons.  It maybe be possible to write a script to check existing records, and then only import "new" users based on that feedback, but we do not have any current documented cases of this.</p>
<p dir="auto">There is an option to get additional information about what is failing on your import.<br />
<a href="https://fusionauth.io/docs/v1/tech/apis/users/#import-users" rel="nofollow ugc">https://fusionauth.io/docs/v1/tech/apis/users/#import-users</a></p>
<pre><code class="language-plain">validateDbConstraints [Boolean] OPTIONAL Defaults to false
Set this value to true in order to perform additional validation of the request.

The import request is intended to be used to populate the initial set of users, this means FusionAuth does not expect to find duplicate users in the database. If a duplicate is encountered a 500 will be returned without this additional validation.

If you intend to use this API with existing users in FusionAuth set this value to true to request additional validation be performed on the input request and a 400 response will be returned with JSON body indicating the duplicate values encountered.

Setting this value to true will dramatically decrease the performance of this request. If importing large numbers of users in a single request you may need to increase request timeouts to ensure this request does not timeout before it has completed.

</code></pre>
<p dir="auto">I hope this helps,<br />
Josh</p>
]]></description><link>https://fusionauth.io/community/forum/post/3467</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/3467</guid><dc:creator><![CDATA[joshua]]></dc:creator><pubDate>Tue, 03 Aug 2021 18:11:41 GMT</pubDate></item></channel></rss>