<?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[Connector service docs say it needs only user.id, but fails it not given email too]]></title><description><![CDATA[<p dir="auto">I think this might be a bug.</p>
<p dir="auto">I made a web service for a Connector that returned:</p>
<pre><code>return response.status(200).json({
    user: {
        'id': '647978c5-01a0-49b8-8f4f-daab25e7ce63',
        'password': 'password',
        'active': true
    }
});
</code></pre>
<p dir="auto">FusionAuth System Event Log said I hadn't given it a unique id, which is not true:</p>
<pre><code>Generic Connector Debug Log for [Test] with Id [b9a215ed-3078-4339-9638-62416fd20837].

3/20/2024 01:58:58 PM Z Attempting authentication request to application with Id [e9fdb985-9173-4e01-9d73-ac2d60d1dc8e] from IP address [172.27.0.1] for [myemailaddress+frontegguserc@simplelogin.com] against the URL [http://host.docker.internal:6252].
3/20/2024 01:59:00 PM Z Endpoint returned status code [200].
3/20/2024 01:59:00 PM Z Connector User:
{
  "active" : true,
  "connectorId" : "e3306678-a53a-4964-9040-1c96f36dda72",
  "data" : {
    "hi" : "hi!"
  },
  "id" : "647978c5-01a0-49b8-8f4f-daab25e7ce63",
  "memberships" : [ ],
  "passwordChangeRequired" : false,
  "preferredLanguages" : [ ],
  "registrations" : [ ],
  "twoFactor" : {
    "methods" : [ ],
    "recoveryCodes" : [ ]
  },
  "usernameStatus" : "ACTIVE",
  "verified" : false
}
3/20/2024 01:59:00 PM Z 
. WARNING DISCARDING USER Connector because it was missing a unique id in the [user.id] or enough information to store in FusionAuth (i.e. an email or username).
</code></pre>
<p dir="auto">If I changed my service to instead return the below, the Connector works and logs me in.</p>
<pre><code>return response.status(200).json({
    user: {
        'id': '647978c5-01a0-49b8-8f4f-daab25e7ce63',
        'password': 'password',
        'active': true,
        'email': email,
        'username': email
    }
});
</code></pre>
<p dir="auto">Either a Connector should work with only a UUID, or the code and docs should change to say it requires email and username too.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2641/connector-service-docs-say-it-needs-only-user-id-but-fails-it-not-given-email-too</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 09:16:08 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2641.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Mar 2024 14:27:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connector service docs say it needs only user.id, but fails it not given email too on Fri, 22 Mar 2024 09:34:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/20">@dan</a> Oh I see. The error in the response says:</p>
<p dir="auto">"because it was missing a unique id in the [<a href="http://user.id" rel="nofollow ugc">user.id</a>] or enough information to store in FusionAuth (i.e. an email or username)"</p>
<p dir="auto">In other words, "either Id or email" is missing from your request. Which makes boolean sense when thinking about it carefully.</p>
<p dir="auto">But when first reading it, I though it meant "you need either Id or email", which is very different. I supplied one of those. I though that was what the "or" meant.</p>
<p dir="auto">This error could be better as:</p>
<p dir="auto">"because it was missing a unique id in the [<a href="http://user.id" rel="nofollow ugc">user.id</a>] or enough information to store in FusionAuth (i.e. an email or username). Both are necessary"</p>
]]></description><link>https://fusionauth.io/community/forum/post/7145</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7145</guid><dc:creator><![CDATA[fusionauth.qhj5e]]></dc:creator><pubDate>Fri, 22 Mar 2024 09:34:20 GMT</pubDate></item><item><title><![CDATA[Reply to Connector service docs say it needs only user.id, but fails it not given email too on Thu, 21 Mar 2024 14:01:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2884">@fusionauth-qhj5e</a></p>
<p dir="auto">Hmmm. Which docs were you looking at?</p>
<p dir="auto"><a href="https://fusionauth.io/docs/lifecycle/migrate-users/connectors/" rel="nofollow ugc">https://fusionauth.io/docs/lifecycle/migrate-users/connectors/</a> says:</p>
<blockquote>
<p dir="auto">If you are migrating a user, you must provide the following fields in the user object you return.</p>
<pre><code>user.username or user.email
user.id: a FusionAuth compatible UUID
</code></pre>
</blockquote>
<p dir="auto">and</p>
<blockquote>
<p dir="auto">If you are authenticating a user, you must provide the following fields in the user object you return.</p>
<pre><code>user.username or user.email
user.id: a FusionAuth compatible UUID
</code></pre>
</blockquote>
<p dir="auto">If there's another place in the docs that state that email/username is not required, would love to correct it.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7141</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7141</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 21 Mar 2024 14:01:20 GMT</pubDate></item></channel></rss>