<?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 check if a user is linked to an external identity provider?]]></title><description><![CDATA[<p dir="auto">I need to determine whether a user is linked to an external identity provider to change application behavior accordingly. I've checked the user object in the userinfo lambda and the <code>/api/user/{userId}</code> endpoint, but neither contains information about linked identity providers.</p>
<p dir="auto">When attempting to use the <code>/api/identity-provider/link</code> endpoint with just a userId parameter, I receive this error:</p>
<pre><code>You must specify the [identityProviderId] property. During a [POST] request this property is not required when using the [pendingIdPLinkId] property to complete the link request.
</code></pre>
<p dir="auto">Is there a way to:</p>
<ol>
<li>Get a list of all linked identities for a specific user?</li>
<li>Determine during login that the user authenticated via an external provider?</li>
</ol>
<p dir="auto">I'm using FusionAuth 1.69.2 and authenticating with an API key.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3220/how-to-check-if-a-user-is-linked-to-an-external-identity-provider</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 00:42:11 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/3220.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Oct 2026 21:17:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to check if a user is linked to an external identity provider? on Wed, 07 Oct 2026 21:17:28 GMT]]></title><description><![CDATA[<p dir="auto">You can retrieve all identity provider links for a user by sending a GET request to:</p>
<pre><code>/api/identity-provider/link?userId={userId}
</code></pre>
<p dir="auto"><strong>Important</strong>: The parameter name is case-sensitive and must be <code>userId</code> (with capital "I"), not <code>userid</code>.</p>
<p dir="auto">The error you're seeing occurs when the parameter is lowercase <code>userid</code> instead of the correct camelCase <code>userId</code>. Using the correct casing will return a list of all identity provider IDs that the user is currently linked to.</p>
<p dir="auto">Make sure your request looks like:</p>
<pre><code>GET {baseUrl}/api/identity-provider/link?userId=4aa40fcd-0102-4c26-a51c-9a6c5c0c504a
Authorization: &lt;your-api-key&gt;
</code></pre>
<p dir="auto">This endpoint works with a standard API key and will return the identity provider link information you need to determine if a user is linked to external providers.</p>
]]></description><link>https://fusionauth.io/community/forum/post/8777</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8777</guid><dc:creator><![CDATA[FASupportBot]]></dc:creator><pubDate>Wed, 07 Oct 2026 21:17:28 GMT</pubDate></item></channel></rss>