FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • F

      Solved How to track progress when deleting a large tenant in FusionAuth?

      Frequently Asked Questions (FAQ)
      • tenant deletion bulk-operations performance • • FASupportBot
      2
      0
      Votes
      2
      Posts
      181
      Views

      F

      Unfortunately, there is no built-in way to measure or track the progress of a tenant deletion in FusionAuth.

      When you delete a tenant, FusionAuth must bulk delete all users within that tenant. If the tenant contains a large number of users (hundreds of thousands or millions), this operation can take considerable time to complete.

      The UI will display "Deleting..." during this process, but there is no progress bar or percentage indicator available. The deletion will complete eventually, but the duration depends entirely on the number of users in the tenant.

      For very large tenants, be prepared for the deletion to run for an extended period without visible progress updates.

      Alternative Approaches

      Monitor Application Logs

      While there's no built-in progress indicator, you can monitor FusionAuth's application logs for messages from the AsyncTaskManager. The logs will show when the deletion task completes:

      [DeleteTenant] task for [tenantId] has completed successful.

      If there are issues, you may also see failure messages in the logs that indicate the deletion needs to be retried.

      Use the API with Async Mode

      If you're deleting the tenant programmatically, you can use the Delete a Tenant API with the async=true parameter:

      DELETE /api/tenant/{tenantId}?async=true

      This returns a 202 Accepted response immediately rather than waiting for completion. The deletion then runs in the background. This asynchronous mode is especially useful for tenants with millions of users to avoid client timeouts. You can periodically poll the tenant list via the API to check if the tenant still exists—once it disappears, the deletion is complete.

      Related Documentation Delete a Tenant API - Official API documentation for tenant deletion with async option Asynchronous Tenant Deletion - Blog post announcing async tenant deletion feature in version 1.22 Tenant Manager API - General tenant management API documentation
    • F

      Solved How to restrict FusionAuth admin panel access to specific IP addresses?

      Frequently Asked Questions (FAQ)
      • admin-panel ip-whitelist access-control security acl • • FASupportBot
      2
      0
      Votes
      2
      Posts
      158
      Views

      F

      Recommended Approaches for FusionAuth Cloud

      Since you're using FusionAuth Cloud, here are your options for restricting admin panel access:

      Use IP ACLs

      You can use the IP ACLs and assign them to the FusionAuth application, which represents the FusionAuth admin UI.

      These are an enterprise only feature, so if you are not on that plan, you can't use IP ACLs.

      Additional Security Layers

      While these don't replace IP restrictions, they add defense in depth:

      Tenant Separation: Move all non-admin users to a separate tenant, keeping the default tenant for administrators only Strong MFA: Require multi-factor authentication for all admin users API Key Security: If you use IP ACLs with API keys (see below), you can restrict which IPs can use specific API keys What IP ACLs ARE Good For

      While IP ACLs don't protect the admin UI directly, they're still valuable for:

      Restricting application access - Apply an IP ACL to specific applications to limit which IPs can authenticate to those apps Restricting tenant access - Apply an IP ACL to a tenant to limit logins across all applications in that tenant Restricting API key usage - Apply an IP ACL to API keys to limit which IPs can use them

      To configure an IP ACL:

      Navigate to Settings > IP Access Control Click the + icon to create a new ACL Add IP ranges and specify whether to allow or block them Set a default action (allow or block) for IPs that don't match any defined range Assign the ACL to an Application, Tenant, or API Key Emergency Access / Lockout Prevention

      Before implementing any IP restrictions (whether via proxy or IP ACLs):

      Create a backup API key with full admin privileges that you store securely Test your configuration from an allowed IP address first Document your IP ranges and keep them updated Have a rollback plan - If using a proxy, ensure you can quickly remove or modify the IP restrictions

      If you do get locked out:

      With IP ACLs on API keys/tenants: Use an unrestricted API key to call the FusionAuth API to modify or remove the ACL Last resort: Contact support (Cloud) Related Documentation Advanced Threat Detection - IP Access Control Lists IP Access Control List API Networking Configuration (Trusted Proxies) FusionAuth Cloud Deployment Community Forum: Restricting Admin Panel Access
    • S

      Unsolved Automating 2FA Login via API without SMTP: How to retrieve or inject OTP?

      Q&A
      • • • sameer.syedmanzur
      2
      0
      Votes
      2
      Posts
      361
      Views

      B

      Hey @sameer-syedmanzur!

      If you're on any paid plan, I'd recommend looking at our Generic Messengers.

      When the generic messenger is hit, it fires off a request to any HTTP endpoint you want. You can then use any method you need to to get the code to the user or post it back to the API to complete the 2nd factor.

      If you're on the Community edition (free version), that's not accessible to you, though.

      For solution on the community edition, check out this doc if you haven't read it yet: https://fusionauth.io/docs/lifecycle/authenticate-users/multi-factor-authentication#build-your-own-interface

      That's how you set up a custom interface for TOTP. That would be the best-practice way of doing 2fa without smtp on community edition. I haven't done anything TOTP-based for testing, but I'd wager there's a TOTP application with an API that could handle this.

      Depending on the use case, it might also make sense to set up something simple with something like MailTrap to do testing via SMTP instead of going through all this. That may be a problem depending on the use case, though

    • danD

      Solved Sending an “inactive account, will be marked dormant” email in FusionAuth

      Q&A
      • email dormant account warning • • dan
      2
      0
      Votes
      2
      Posts
      400
      Views

      danD

      Not as a single feature, but doable with some glue code. FusionAuth has no built-in “inactivity warning” workflow or scheduler for this.

      It does give you the pieces: a lastLoginInstant on every user, a user search API, an email send API, and user deactivation. You wire them together with a small scheduled job (cron, Lambda, GitHub Action, etc.) outside FusionAuth.

      Set up a daily job that does three things:

      Finds users whose last activity was about 55 days ago and who haven’t been warned yet. Sends them the warning email and records that you did. Finds users who are 60+ days inactive and marks them dormant.

      If a user logs in during the 5-day window, their lastLoginInstant updates and they drop out of the step 3 query automatically.

      Use the User Search API with an Elasticsearch/OpenSearch query on lastLoginInstant (milliseconds since epoch). This needs the Elasticsearch/OpenSearch search engine. The database search engine doesn’t support range queries on this field.

      POST /api/user/search { "search": { "numberOfResults": 500, "query": "{\"bool\":{\"must\":[{\"range\":{\"lastLoginInstant\":{\"lt\":1760000000000}}}],\"must_not\":[{\"term\":{\"data.dormantWarningSent\":true}}]}}" } }

      Compute the lt value in your job as now - 55 days (so replace 1760000000000). Users who have never logged in won’t have a lastLoginInstant, so decide whether to fall back to insertInstant for them.

      You can use FusionAuth to send the email or your own system. If you choose the former, create an email template in Customizations → Email Templates, then call the Send Email API with the matching user IDs:

      POST /api/email/send/{emailTemplateId} { "userIds": ["<id1>", "<id2>"], "requestData": { "daysInactive": 55, "daysUntilDormant": 5 } }

      Your template body can then use FreeMarker:

      Hi ${user.firstName!"there"}, As part of our routine account security measures, we monitor accounts for inactivity. We haven't detected activity on your account in the last ${daysInactive} days, and it is scheduled to be marked dormant in ${daysUntilDormant} days unless activity is detected. Log in to keep your account active: https://login.example.com

      requestData values are available at the top level of the template, so you can reuse the template if you change the thresholds later.

      After a successful send, patch the user to record that they've been notified so you don't send them multiple emails:

      PATCH /api/user/{userId} { "user": { "data": { "dormantWarningSent": true, "dormantWarningSentAt": 1760000000000 } } }

      The must_not clause in the search query above then skips them. If the user logs in, clear the flag so they can be warned again in the future. A user.login.success webhook receiver that uses the API is a clean place to do that.

      As far as what you actually do when the user is marked dormant, you have two options:

      Deactivate the user. DELETE /api/user/{id} (soft delete) sets active=false, which blocks login. To reactivate, call PUT /api/user/{id}?reactivate=true. Deactivation also fires a user.deactivate event that you can consume via webhook to notify downstream systems. Flag only. Set user.data.dormant = true and handle it in your app where you might do a step-up or force an account recovery. This is gentler and keeps the account usable after a step-up.

      For a true “close the account” outcome, deactivate first. Hard-delete (?hardDelete=true) only after a retention period that satisfies your compliance requirements.

      Caveats:

      lastLoginInstant updates when a user authenticates. Silent token refreshes using an existing refresh token don’t necessarily count as logins, so a user with a long-lived session in your app could look inactive. If that matters, track your own activity timestamp in user.data (updated by your app or a webhook) and query that instead. Test this against your own setup before relying on it.

      user.lastLoginInstant is global to the user within a tenant. Each registration also has its own lastLoginInstant (user.registrations[].lastLoginInstant). If “inactive” should mean inactive in a specific application, query on that field and filter by applicationId.

      Run the job daily and use a window, not an exact day match, so a missed run doesn’t skip anyone.

      Page through search results (startRow) rather than assuming one page covers everyone.

      Test with a user whose lastLoginInstant you’ve backdated in a non-production tenant.

      Make sure your Send Email API key has only the endpoints it needs (search, send email, patch user, deactivate).

    • danD

      Solved Data analysis of login/user data from FusionAuth

      Q&A
      • insights analytics login flow • • dan
      2
      0
      Votes
      2
      Posts
      1.0k
      Views

      danD

      You want to use FusionAuth webhooks to push data into your pipelines. I imagine the JSON will differ, so you might need to modify your mapping layer, but we should be able to provide the data you expect.

      Here's our general webhook documentation.

      Some events you might be interested in:

      User login success which includes the authentication method User login failure Two factor method added User create

      Where possible, avoid transactional webhooks because you're using this for analytics and transactional webhooks impact workflow duration negatively.

      You can also use the Search API to get adhoc counts/true things up, but it won't necessarily have the richness of data of the webhooks.

    • F

      Solved How do I add IP addresses to the FusionAuth Cloud allow list?

      Frequently Asked Questions (FAQ)
      • cloud networking ip-allowlist api configuration • • FASupportBot
      2
      0
      Votes
      2
      Posts
      340
      Views

      F

      FusionAuth Cloud can add IP addresses to your instance's allow list if they meet the following criteria:

      Static: The IP address must be static and not change without notice. Owned by your organization: The IP must be allocated to your company's infrastructure, not shared with other companies or resources (such as through a CDN). Associated with production servers: The IP must be used by production servers, not developer laptops or office networks.

      Once you confirm your IP addresses meet these criteria, open a support ticket through your FusionAuth account portal with:

      The list of IP addresses to be added Confirmation that each criterion is met The FusionAuth Cloud hostname your application connects to

      FusionAuth will then add the addresses to your allow list. Note that if you use shared network infrastructure (like NAT gateways), all traffic from that infrastructure will share the same outbound IP, which is acceptable as long as the criteria above are met.

      Important notes:

      Allow list changes typically take two to three business days to implement Adding IPs to the allow list helps prevent 429 response codes and CAPTCHA challenges that may occur due to FusionAuth Cloud's rate limiting protections If you no longer need an IP address on the list, you can submit a support ticket to have it removed Related Documentation FusionAuth Cloud CAPTCHA and Rate Limits - Detailed information about IP allow lists and rate limiting FusionAuth Cloud Support - How to access support for your FusionAuth Cloud deployment FusionAuth Cloud Deployment IP Addresses - Information about IP addresses for your FusionAuth Cloud instances
    • F

      Solved How can I customize email templates per tenant without duplicating templates?

      Frequently Asked Questions (FAQ)
      • email-templates multi-tenant freemarker customization branding • • FASupportBot
      2
      0
      Votes
      2
      Posts
      310
      Views

      F

      Yes, you can use FreeMarker logic in FusionAuth email templates to dynamically customize content per tenant without duplicating templates.

      Solution

      Store tenant-specific branding data in the tenant.data field (custom JSON). For example:

      { "branding": { "logoUrl": "https://cdn.example.com/acme/logo.png", "primaryColor": "#0057b8", "buttonTextColor": "#ffffff", "subjectPrefix": "[Acme]", "supportEmail": "help@acme.com", "companyName": "Acme" } }

      Then reference this data in your email templates using FreeMarker syntax. Here's an example for email verification:

      [#assign b = (tenant.data.branding)!{}] [#assign color = b.primaryColor!"#333333"] <div style="font-family: Arial, sans-serif;"> <img src="${b.logoUrl!'https://cdn.example.com/default-logo.png'}" alt="${b.companyName!tenant.name}" height="40"> <p>Hi ${user.firstName!'there'},</p> [#if verificationOneTimeCode??] <p>Your verification code:</p> <p><strong>${verificationOneTimeCode}</strong></p> [#else] [#assign url = "${baseUrl}/email/verify/${verificationId}?client_id=${(application.oauthConfiguration.clientId)!''}&tenantId=${tenant.id}"] <a href="${url?html}" style="background:${color}; color:${b.buttonTextColor!'#ffffff'}; padding:12px 24px; text-decoration:none; border-radius:4px;"> Verify email </a> [/#if] </div> How it works [#assign b = (tenant.data.branding)!{}] safely extracts the branding object or defaults to an empty object ${b.logoUrl!'default-value'} provides fallback values if a property is missing The same template works across all tenants, pulling each tenant's specific branding from tenant.data

      This approach works for all FusionAuth email templates (email verification, forgot password, email MFA). The complexity and depth of customization you can achieve depends on your specific needs, but this pattern handles most common branding requirements.

      There's no form for editing tenant data, but you can do so using one of the client libraries and your own custom form.

    • F

      Solved Is the user/registration endpoint safe for concurrent calls?

      Frequently Asked Questions (FAQ)
      • api user registration concurrency race-condition • • FASupportBot
      2
      0
      Votes
      2
      Posts
      276
      Views

      F

      The /api/user/registration endpoint can be problematic when called concurrently for the same user. FusionAuth recommends using sequential calls.

      Recommendation: Make your registration calls sequentially, one after another, even though it may take slightly longer. This ensures data consistency and avoids potential conflicts or failures during the registration process.

      There is currently no single API call to atomically register a user to multiple applications. Each registration to an application requires a separate API call, and sequential execution is the safest approach.

      Related Documentation User Registration API - Overview of the registration API and available operations Create a User Registration (for an existing user) - API documentation for creating registrations Registrations Core Concept - Understanding the relationship between Users and Applications Applications - Core concepts about Applications in FusionAuth Registering a user to other applications during registration - Community discussion on this topic
    • F

      Solved Can Passkeys be used as an MFA method alongside email and authenticator app?

      Frequently Asked Questions (FAQ)
      • mfa passkeys webauthn authentication two-factor • • FASupportBot
      2
      0
      Votes
      2
      Posts
      441
      Views

      F

      Unfortunately, Passkeys cannot currently be used as an MFA method in FusionAuth's native hosted MFA flow. There is an open feature request for this functionality.

      Workaround

      You can implement a step-up authentication pattern using FusionAuth's WebAuthn API:

      After the user completes email + password login, your application calls /api/webauthn/start The authenticator produces a signature Your application calls /api/webauthn/assert to verify possession of the passkey Only grant access if the assertion succeeds

      You can check whether a user has a registered passkey by calling /api/webauthn?userId={userId}.

      Important limitation: This workaround runs in your application code, not inside FusionAuth's hosted MFA screen. Passkeys will not appear alongside email and authenticator app in the same native picker — you would need to build that UI and enforcement logic yourself in your application.

      A feature request has been logged for native passkey MFA support in FusionAuth's hosted flow.

      Related Documentation Authentication With WebAuthn & Passkeys - Complete guide to implementing WebAuthn/passkeys in FusionAuth WebAuthn API Reference - API endpoints for starting and completing WebAuthn authentication ceremonies Start a WebAuthn Passkey Assertion - Documentation for the /api/webauthn/start endpoint Retrieve a Passkey - How to check if a user has registered passkeys using /api/webauthn?userId={userId} Multi-Factor Authentication (MFA) - Overview of FusionAuth's native MFA methods (TOTP, email, SMS) Step-Up Authentication - General guidance on implementing step-up auth patterns in FusionAuth Can I do a step up authentication with WebAuthn/passkeys? - Community discussion on this exact use case
    • F

      Solved Can passwordless login code TTL be configured per application instead of per tenant?

      Frequently Asked Questions (FAQ)
      • passwordless configuration api tenant login-flow • • FASupportBot
      2
      0
      Votes
      2
      Posts
      388
      Views

      F

      Unfortunately, the passwordless login code TTL cannot be configured per application—it is only available as a tenant-level setting in FusionAuth. The default TTL is 180 seconds, and this is configured via tenant.externalIdentifierConfiguration.passwordlessLoginTimeToLiveInSeconds.

      Here are two potential workarounds:

      1. Separate Tenants

      Since the setting is per tenant, you could place applications that require different code lifetimes into separate tenants. Note that this means users and configuration will be isolated per tenant, so carefully evaluate whether this trade-off fits your architecture.

      2. Build Your Own Passwordless Flow

      You can implement custom code expiration logic by using the passwordless API directly:

      Start the login with /api/passwordless/start Deliver the code through your own mechanism Track when you issued each code in your application Enforce your desired per-application expiry by rejecting codes that are too old before calling the completion endpoint Complete the login with /api/passwordless/login

      With this approach, the tenant-level TTL acts as the maximum lifetime, but your application logic can enforce shorter, application-specific expirations as needed.

      This is not a built-in FusionAuth feature, so if per-application passwordless code TTL is important to your use case, consider submitting a feature request on the FusionAuth GitHub issues page.

      Related Documentation Passwordless Login Overview - General overview of passwordless authentication in FusionAuth Magic Links Guide - Details on magic links and one-time code customization, including TTL configuration Passwordless API - Complete API reference for building custom passwordless flows Start Passwordless Login API - API to generate a passwordless code Complete Passwordless Login API - API to complete the passwordless login Tenant Configuration - Tenant-level external identifier settings including passwordless login TTL
    • F

      Solved How to customize root path and 404 pages to redirect to application login?

      Frequently Asked Questions (FAQ)
      • themes cloud customization redirect tenant • • FASupportBot
      2
      0
      Votes
      2
      Posts
      452
      Views

      F

      FusionAuth supports customization for some of these scenarios through themes, but not all:

      1. Root Path Customization

      This is possible. The Index page can be customized through your FusionAuth theme. You can add a redirect (for example, using JavaScript or a meta refresh tag) to send users to your application's login page.

      Important: When FusionAuth can't identify the tenant (including when browsing to / without client_id or tenantId parameters), it uses the default tenant. To theme the root page:

      Create a copy of the built-in theme — the default theme is immutable because it ships with FusionAuth Edit the index template in your copy to include your redirect (using JavaScript like window.location.href = "https://yourapp.com/login" or HTML meta refresh) Apply this theme to ALL tenants, including the default tenant Test with tenant specified — try the root URL with tenantId or client_id to confirm your edited theme renders

      See the Advanced Themes troubleshooting guide for more details on theme issues.

      Related: GitHub Issue #378

      2. OAuth Error Handling

      This is also possible. The OAuth error page can be customized in your theme, so you can implement the same redirect approach for customers who saved stale or broken login links. The OAuth error template is available for customization and you can add JavaScript or meta refresh redirects to handle these scenarios.

      Note that OAuth errors can also be returned as redirect parameters to your application's callback URL (depending on the OAuth flow), which allows your application to handle errors directly rather than showing the FusionAuth-hosted error page.

      3. 404 Pages for Invalid URLs

      This is NOT currently customizable. The 404 page cannot be customized, including on Cloud deployments. Requests to invalid paths (like /whatever) will show the default error page. This is a known limitation tracked in GitHub Issue #404, which requests additional themed error pages (including 404 and 500 pages).

      Summary

      You can handle root path and OAuth error redirects through theme customization by adding JavaScript redirects to the index and OAuth error templates. However, true 404 pages remain uncustomizable. CloudFront configuration is not exposed to customers on cloud deployments, so there's no workaround at that layer.

      Related Documentation Advanced Themes Documentation - Complete guide to customizing FusionAuth themes Theme Templates - Full list of available templates including Index and OAuth error Theme Template Variables - Variables available in each template Index Template Variables - Specific to the root page OAuth Error Template Variables - Specific to OAuth error page OAuth Error API Documentation - How OAuth errors are returned Default Tenant Configuration - Understanding the default tenant
    • W

      Unsolved Does FusionAuth Support UMA Grant and Token Exchange (RFC 8693)?

      Q&A
      • • • wesley
      3
      0
      Votes
      3
      Posts
      1.5k
      Views

      joshuaJ

      RFC 8693 is now supported as of 1.70.0

    • P

      Unsolved 403 on the post-login passkey offer when re-authentication is enabled only by an application override

      Q&A
      • • • pragnesh.nonghanvadra
      1
      0
      Votes
      1
      Posts
      114
      Views

      No one has replied

    • mark.robustelliM

      All Community Support Is Moving Here — Here's Why That's a Good Thing

      Announcements
      • • • mark.robustelli
      1
      1
      Votes
      1
      Posts
      324
      Views

      No one has replied

    • D

      Unsolved FusionAuth security vulnerability: fixed by 1.69.4

      Q&A
      • • • damien
      2
      0
      Votes
      2
      Posts
      480
      Views

      mark.robustelliM

      @damien For information on releases, please be sure to check out the release-notes. While it may not list which versions the issues were introduced in, it is recommended to stay on the latest version to avoid potential issues.

    • F

      Unsolved lastLoginInstant data lost during upgrade from 1.57.0 to 1.59.1

      Q&A
      • • • florent.bossuyt
      2
      0
      Votes
      2
      Posts
      732
      Views

      danD

      Hiya @florent-bossuyt ,

      Thanks for using FusionAuth.

      The upgrade to 1.59.0 added support for phone number as a first class identity. While I don't know for sure, it is possible that impacted lastLoginInstant. I'm not aware of any bug filed.

      It's also possible you can find the data previously in the lastLoginInstant in the user.identities[x].lastLoginInstant value, available when you retrieve a user.

      Since this is not a known issue, there's no documented procedure for reconciling the data, unfortunately.

      Here's one approach, though.

      If you have a database backup of the 1.57.0 release, you could stand up a FusionAuth instance pointing to that, and find all the users with a lastLoginInstant that is not null (set A). You'd then run the same query against your prod instance (set B). Then find the folks in set A who are not in set B (call them set C). Set C are the people you need to update.

      Unfortunately, you can't update their lastLoginInstant directly. But you can fake a login using the passwordless APIs, which should set it. That is outlined here.

      So you'd want to perform that for all the users in set C.

      Hope that helps.

    • R

      Unsolved Creating User without Password

      Q&A
      • • • rvogelgsang
      4
      0
      Votes
      4
      Posts
      2.8k
      Views

      danD

      As of version 1.59.0, you can create users without passwords.