<?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[Can we do a user search without a tenant id?]]></title><description><![CDATA[<p dir="auto">We have multiple tenants in FusionAuth and want to be able to search across all of them for a given user. Is this possible?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/162/can-we-do-a-user-search-without-a-tenant-id</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 12:36:29 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/162.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jun 2020 18:26:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can we do a user search without a tenant id? on Mon, 15 Jun 2020 18:28:20 GMT]]></title><description><![CDATA[<p dir="auto">If you don't care about the possibility of duplicate users or you can handle them in your business logic (because tenants allow multiple users to have the same username or email address), you can use a globally scoped API key and just call the search API with the email address.</p>
<p dir="auto">For example, here a script I ran after creating two 'test@example.com' users in different tenants in one FusionAuth instance: <code>curl -H "Authorization: $API_KEY" 'http://localhost:9011/api/user/search?queryString=test%40example.com'</code></p>
<p dir="auto">The API_KEY variable was a globally scoped API key (not scoped to one tenant).</p>
<p dir="auto">This returned this json (note, I'm running the database search engine, but the results should be similar if you are running elasticsearch):</p>
<pre><code>{"total":2,"users":[{"active":true,"email":"test@example.com","id":"0e3f0f4d-6795-4200-b044-9fea2437f0d2","insertInstant":1591914961640,"lastLoginInstant":1591914961678,"passwordChangeRequired":false,"passwordLastUpdateInstant":1591914961675,"tenantId":"1de156c2-2daa-a285-0c59-b52f9106d4e4","twoFactorDelivery":"None","twoFactorEnabled":false,"usernameStatus":"ACTIVE","verified":true},{"active":true,"email":"test@example.com","id":"6d145368-431b-4df1-aba4-5741bd7a9280","insertInstant":1592244970665,"lastLoginInstant":1592244970695,"passwordChangeRequired":false,"passwordLastUpdateInstant":1592244970690,"tenantId":"7b231917-733e-4347-b9e2-11915de60fc8","twoFactorDelivery":"None","twoFactorEnabled":false,"usernameStatus":"ACTIVE","verified":true}]}
</code></pre>
]]></description><link>https://fusionauth.io/community/forum/post/403</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/403</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Mon, 15 Jun 2020 18:28:20 GMT</pubDate></item></channel></rss>