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
    • A

      Unsolved 403 calling Hosted Backend /app/refresh API

      Q&A
      • • • andrzej.taramina
      3
      0
      Votes
      3
      Posts
      221
      Views

      A

      @bryan-robinson

      I'm getting the 4503 even though I'm running the caller and FusionAuth on localhost for dev testing purposes. The caller is on localhost:8080 and FA is on localhost:9011.

      According to the documentation for app/refresh, this should work.

      Any ideas?

    • A

      Unsolved VueJS SDK call to app/me endpoint failing with 401 after upgrade to latest version of FusionAuth

      Q&A
      • • • andrzej.taramina
      3
      0
      Votes
      3
      Posts
      203
      Views

      A

      @bryan-robinson

      We are not using DPoP at all, and the app/me call is being made transparently by the FusionAuth Vue SDK, so is not something we can change. That is the default when setting up the VueJS SDK.

      I've isolated this to the upgrade to 1.60.0. It has the issue. 1.59.1 works fine.

      I suspect it's due to the new tty claim that is included in the at and idt tokens, which did not exist before.

      The external JWT reconcile API only returns at and rt tokens. It does not return an idt. So we were setting the at value for the idt cookie. But now that the two tokens can be differentiated, I suspect that this causes the issue.

      Was trying to use the Hosted Backend app/refresh API to get refreshed tokens, including an idt, but that is returning a 403-Forbidden for some reason. Documentation on what is required for that API call is rather sparse Says it needs the app.rt cookie, which we have set...but seems it needs more.

    • danD

      Solved different password complexity for same users in a tenant

      Q&A
      • password complexity tenants • • dan
      2
      0
      Votes
      2
      Posts
      48
      Views

      danD

      Unfortunately, lambdas won't help here. FusionAuth never exposes the password anywhere lambda code can access it, so you can't write a lambda that validates complexity.

      You do have several other options, each with tradeoffs:

      Low complexity for everyone, with MFA for franchise managers. Configure the tenant with low complexity rules and require MFA for the franchise manager group using the MFA lambda. The MFA lambda can be combined with most of the other options below.

      Low complexity for everyone, with an IdP for franchise managers. Add an identity provider pointing to a different FusionAuth instance/tenant or a corporate directory, and have franchise managers authenticate there.

      The FusionAuth instance can have more complex password requirements. Add a Login Validation lambda that denies login for users in the franchise manager group unless they authenticated through that IdP. Modify the theme to hide the IdP button on the normal login page. Pass an idp_hint on the authorization URL for everyone in the franchise manager group.

      Passwordless for restaurant staff. Let restaurant staff log in without a password and set higher complexity rules at the tenant level for everyone else.

      Two tenants with separate applications. Create tenant A (low complexity) and tenant B (high complexity). Have the restaurant staff application use tenant A's ID and the franchise manager application use tenant B's ID. You could also use a universal application to represent the application.

      Two tenants with a connector. Again, tenant A is low complexity and tenant B is high complexity.

      Set up a connector from tenant B to tenant A, with MFA lambda rules in tenant B for franchise managers. Configure the connector to not migrate users. Have all users log in to the application in tenant B, which checks tenant A for restaurant staff.

      All of these will work, but they have tradeoffs. Some may increase your MAU count, and some may add latency.

      Why not per-application password rules?

      As an aside, I don't expect FusionAuth to ever support different password rules per application, because it would lead to confusing user experiences:

      If the staff app requires 10 characters and the manager app requires 15, and a user registers in the staff app, what happens if/when they log in to the manager app? Do we deny the login? Force a password change? If the staff app requires 10 to 20 characters and the manager app requires 25 to 35, no single password can satisfy both. Would a user have to change their password every time they switch between the two apps? Can you migrate users between applications?
    • F

      Solved WebAuthn passkey registration fails on Android with origin validation error in 1.69.2

      Frequently Asked Questions (FAQ)
      • webauthn passkey android credential manager • • FASupportBot
      2
      0
      Votes
      2
      Posts
      82
      Views

      F

      This is a confirmed bug in FusionAuth 1.69.2. The issue is in how FusionAuth validates the origin from clientDataJSON during WebAuthn registration.

      This has been fixed and will be released in the next release. Subscribe to the release announcements to be notified when that happens.

    • F

      Solved Is `auth_time` in refresh token metadata reliable for MFA + PASSWORD flows?

      Frequently Asked Questions (FAQ)
      • refresh-token metadata mfa authentication api • • FASupportBot
      2
      0
      Votes
      2
      Posts
      52
      Views

      F

      The data sub-object containing auth_time and authentication_type in refresh token metadata is not currently a documented or officially supported feature in FusionAuth. Its presence is inconsistent across authentication flows, as you've observed — it appears for some authentication types but not others (notably absent for MFA + PASSWORD flows).

      According to the official documentation, the only documented fields within refresh token metaData are:

      metaData.device — An object containing device information (name, type, description, lastAccessedAddress, lastAccessedInstant) metaData.scopes — An array of OAuth scopes associated with the token metaData.resources — An array of resource URIs per RFC 8707 (available since v1.67.0)

      The data sub-object with auth_time and authentication_type that you're observing is not part of the documented API contract. Because this is undocumented behavior, you should not rely on it in production code, as it may change or be removed in future versions without notice.

      Important Distinction: auth_time on JWTs vs Refresh Tokens

      Note that auth_time is a standard and documented claim on access tokens and ID tokens (the JWTs themselves), where it represents the time of initial authentication. However, it is not a documented field on the refresh token record itself when queried via the retrieval API.

      Related Documentation Retrieve Refresh Tokens API — Official API documentation including the complete response body structure for refresh tokens Access Token and ID Token Claims — Where auth_time is officially documented as a JWT claim Multi-Factor Authentication (MFA) — Guide to implementing MFA in FusionAuth JWT Refresh API — How to use refresh tokens to obtain new access tokens
    • F

      Solved How are FusionAuth Cloud deployments sorted in the account portal?

      Frequently Asked Questions (FAQ)
      • cloud account-portal deployments feature-request • • FASupportBot
      2
      0
      Votes
      2
      Posts
      62
      Views

      F

      Currently, there is no sorting logic implemented for deployments in the FusionAuth Cloud account portal. The order of deployments is not sorted alphabetically or by any other consistent criteria at this time.

      This has been noted as a feature request to add sorting capabilities (or the ability to manually sort) deployments in the account portal. This would help prevent accidental selection of the wrong instance when managing multiple FusionAuth Cloud deployments.

      In the meantime, extra care should be taken when selecting deployments from the list to ensure you're working with the correct instance. You can use the Rename feature (available in the Action dropdown menu for each deployment) to give your deployments descriptive names that help distinguish between different products or environments.

      Related Documentation Managing Your Deployments - Overview of managing FusionAuth Cloud deployments in the account portal The Account Portal - Documentation on accessing and using the account portal FusionAuth Account Portal Reference - Complete reference for the FusionAuth account portal features
    • F

      Solved How to get static outbound IP addresses for FusionAuth Cloud email delivery?

      Frequently Asked Questions (FAQ)
      • fusionauth cloud email smtp static-ip • • FASupportBot
      2
      0
      Votes
      2
      Posts
      57
      Views

      F

      FusionAuth Cloud deployments can provide static outbound IP addresses for email delivery and other outbound connections. The availability and process depend on when your deployment was created.

      Getting Static IP Addresses

      For new FusionAuth Cloud deployments: Static IP addresses are already configured automatically.

      For existing deployments: You need to open a support ticket to get static IP addresses assigned.

      How to Request Your Deployment's IP Addresses

      To retrieve the specific outbound IP addresses for your deployment (e.g., to allowlist them with your SMTP provider):

      Open a support ticket Include the name of the deployment for which you need the outbound IP addresses

      Once assigned, these IP addresses will remain static and won't change during upgrades, restarts, or normal operations.

      Important Notes About the IP Addresses The provided IP addresses are for outbound traffic only (firewalls, allowlists, SPF records, etc.) — they will not respond to HTTP API calls You should add these IPs to your SPF DNS record for your sending domain to prevent password reset and other transactional emails from landing in spam Multiple IP addresses may be provided for high availability Recommended Approach

      If you have both production and development environments:

      Request and configure the static IPs for your development instance first Test email delivery with the allowlisted IPs Once verified, request and configure the production deployment's static IPs Related Documentation FusionAuth Cloud - Deployment IP Addresses - Official documentation on obtaining IP addresses for your FusionAuth Cloud deployment Configure SMTP - Complete guide to configuring email delivery in FusionAuth SMTP Best Practices - Recommendations for maintaining good sender reputation including SPF records GitHub Issue #1393 - Original feature request for static IP addresses in FusionAuth Cloud
    • F

      Solved Remember Me checkbox not working — users logged out after one hour despite being checked

      Frequently Asked Questions (FAQ)
      • remember-me oauth session device-trust tenant • • FASupportBot
      2
      0
      Votes
      2
      Posts
      37
      Views

      F

      The behavior you're experiencing is likely related to the SSO Session Timeout setting in your Tenant configuration.

      Understanding the "Remember Me" Checkbox

      The "Remember Me" checkbox (labeled "Keep me signed in" in the default theme) controls the FusionAuth SSO session. When checked, it creates a persistent cookie that allows users to remain logged in across browser sessions. However, even with this option checked, the session will still expire based on your configured Session Timeout value.

      Check Your SSO Session Timeout

      Navigate to:

      Tenants → (your tenant) → OAuth tab Look for the Session timeout setting The default value is 3600 seconds (1 hour)

      This setting controls how long the FusionAuth SSO session remains valid. When this duration expires, users are logged out and must re-authenticate, even if they previously selected "Remember Me."

      The one-hour expiration you're seeing matches the default Session Timeout setting, which explains why users are consistently logged out after that time period.

      To Resolve This Issue Increase the Session timeout value to a longer period (e.g., 86400 seconds for 24 hours, 2592000 seconds for 30 days, or whatever suits your security requirements) Save the Tenant configuration Have users log in again with "Remember Me" checked

      The new timeout will apply to all new SSO sessions created after the configuration change.

      Related Documentation Logout and Session Management - SSO Session Timeouts FusionAuth Cookies Reference Does FusionAuth support Remember Me functionality? Configure Session Timeout
    • F

      Solved Can I use AWS SNS Notify for SMS MFA with FusionAuth Generic Messenger?

      Frequently Asked Questions (FAQ)
      • mfa sms generic messenger aws • • FASupportBot
      2
      0
      Votes
      2
      Posts
      53
      Views

      F

      Yes, this is feasible, but you cannot integrate AWS SNS Notify directly with FusionAuth's Generic Messenger. You'll need to implement a middleware relay to bridge the two systems.

      Architecture

      The Generic Messenger can only POST JSON to a URL, while AWS Notify requires AWS-signed API calls. The solution is to place a relay service between FusionAuth and AWS SNS.

      Recommended approach:

      Set up an AWS API Gateway endpoint backed by a Lambda function as your relay Configure FusionAuth's Generic Messenger to POST to this API Gateway endpoint The Lambda function receives the phone number and message from FusionAuth The Lambda extracts the MFA code from the payload The Lambda calls AWS SNS SendNotifyTextMessage with the code as a template variable AWS SNS delivers the SMS using your pre-approved template Important constraint

      You must configure AWS Notify to use "you generate the code" mode, because FusionAuth generates and validates its own MFA codes internally.

      Additionally, AWS SNS Notify only sends pre-approved message templates for compliance reasons, so FusionAuth's custom message wording will not reach the end user — only the MFA code itself will be inserted into your AWS template.

    • F

      Solved How to audit if application authentication tokens have been used for login?

      Frequently Asked Questions (FAQ)
      • authentication tokens api login-records audit • • FASupportBot
      2
      0
      Votes
      2
      Posts
      54
      Views

      F

      Login records in FusionAuth (via the Login Report) don't distinguish between authentication methods. The response fields include applicationId, applicationName, loginId, loginIdType, instant, ipAddress, and userId, but none indicate the credential type used (token vs. password vs. SSO).

      Recommended Approach

      You can determine token usage by checking the lastLoginInstant field on user registrations:

      Use the Retrieve User Registration endpoint (GET /api/user/registration/{userId}/{applicationId}) or search for users with tokens For each registration with an authenticationToken, check the lastLoginInstant against your time windows (30 days, 90 days, 1 year) If lastLoginInstant falls within your time window for any user, someone authenticated to that application during that period

      Here's a Python script approach:

      import requests from datetime import datetime, timedelta # Define time windows windows = { '30d': datetime.now() - timedelta(days=30), '90d': datetime.now() - timedelta(days=90), '1y': datetime.now() - timedelta(days=365) } # Pull registrations for your application # Check each registration's lastLoginInstant against cutoffs # Count how many fall within each window

      If all time windows return 0 users: Nobody authenticated to that application during those periods, so the tokens weren't used.

      If users show up: The lastLoginInstant can't distinguish whether they used the token, password, or SSO. In this case, you have two additional options:

      Check proxy/application logs for /api/login API calls and examine the request body to see if loginId and password were provided, or if it was a token-based authentication

      Check webhook events: If you have webhooks configured, examine user.login.success events for the authenticationType field. When a user authenticates with an application authentication token, the value will be APPLICATION_TOKEN. Other possible values include PASSWORD, REFRESH_TOKEN, identity providers like GOOGLE or FACEBOOK, and many more.

      Check JWTs: If you capture or log JWTs, the access token contains an authenticationType claim that indicates the authentication method used. For authentication tokens, this will be set to APPLICATION_TOKEN.

      Related Documentation Application Authentication Tokens - Overview of application authentication tokens and how they work Retrieve a User Registration API - API documentation for retrieving user registration details including authenticationToken and lastLoginInstant Search Login Records API - API for searching login records (note: does not include authenticationType) User Login Success Event - Webhook event that includes authenticationType field Authentication Types Reference - Complete list of authentication types including APPLICATION_TOKEN, PASSWORD, and others Login API - API for authenticating users with various methods including authentication tokens
    • D

      Unsolved trying to avoid issues with platform authenticators

      Q&A
      • • • david.kircheis
      2
      0
      Votes
      2
      Posts
      153
      Views

      danD

      Hi @david-kircheis,

      The cross-platform authenticator passkey functionality is not available for the licensed community edition, only the platform passkey functionality.

      The options I see for your use case are:

      talk to sales about an enterprise license, if it fits your business model. We do offer non-profit discounts in certain circumstances. use platform authenticators with all their limits move to a different identity provider

      While we'd love to have FusionAuth used by everyone, we can't offer all features to every plan level. We recognize this limit means FusionAuth isn't the right solution for every authentication problem.

      I appreciate you using FusionAuth now and hope it remains helpful to you.

    • F

      Solved How to redirect users from FusionAuth 404 error page?

      Frequently Asked Questions (FAQ)
      • 404 themes customization reverse-proxy error-handling • • FASupportBot
      2
      0
      Votes
      2
      Posts
      140
      Views

      F

      Unfortunately, there is no built-in way to customize the 404 page via FusionAuth themes to force a redirect. The standard theme editor does not include a template for the 404 error page, and this functionality is not currently supported.

      The recommended approach is to:

      Investigate the root cause: Try to determine what circumstances are causing users to hit the 404 page. If you can replicate the issue, identifying the source will help prevent it from occurring.

      Use a reverse proxy: If you need to redirect users away from the 404 page, the recommended solution is to set up a reverse proxy (such as nginx, Apache, or similar) in front of FusionAuth that can intercept 404 responses and redirect users to an appropriate page. For example, with nginx, you can use the proxy_intercept_errors directive to handle error responses.

      It's generally better to address why users are reaching the 404 page rather than simply redirecting them away from it, as this may indicate an underlying issue with URL construction, deep linking, or session handling in your application.

      Related Documentation Themes Overview - Learn about FusionAuth's theme customization capabilities Troubleshooting Proxies - Important guidance when using FusionAuth behind a reverse proxy 404 Page Theme Forum Discussion - Community discussion confirming this limitation GitHub Issue #404 - Feature request for customizable error pages (consider upvoting if this is important to you)
    • F

      Solved Why am I receiving two MFA codes during password reset flow?

      Frequently Asked Questions (FAQ)
      • mfa password-reset gmail email theme • • FASupportBot
      2
      0
      Votes
      2
      Posts
      105
      Views

      F

      This issue is related to Gmail's safe-links protection feature, which scans links in emails for security purposes.

      Root Cause

      When Gmail scans the password reset button/link, it fires two GET requests to the /password/change endpoint:

      One request from Gmail's link scanner One request from the actual user click

      Each request triggers the MFA code generation, resulting in two codes being sent.

      Why FusionAuth's Normal Protections May Not Apply

      FusionAuth has built-in protections against email link scanners consuming codes or triggering duplicate actions. Starting with version 1.49.0, FusionAuth introduced a mandatory confirmation page that requires user interaction when a link request doesn't originate from the same browser that initiated the workflow. This prevents most link scanners (including aggressive ones like Outlook Safe Links) from consuming codes.

      However, this protection may not engage if:

      Custom theme is missing the confirmation template — If you're using a custom theme, you need to copy the "Confirmation required" template (/confirmation-required) into your theme to benefit from this feature. Without it, the protection doesn't work. The user recently changed their password and has "confirmation trust" already established in their browser A proxy between the client and FusionAuth is not properly handling cookies that prevent link checker issues The state parameter is being mangled in a custom theme, causing unexpected behavior Solutions

      Add the Confirmation Required Template to Your Custom Theme — This is likely the primary fix. The confirmation required template was added in version 1.49.0 and must be manually added to custom themes. Copy it from the default theme to ensure link scanners are blocked from triggering duplicate MFA codes.

      Upgrade to the Latest Version of FusionAuth, which includes the most recent fixes for link scanner issues

      Review Custom Theme Modifications — Compare your theme files against the stock FusionAuth theme to ensure the state parameter and form structure haven't been altered in ways that bypass protections

      Check Proxy Configuration — Ensure any proxy in front of FusionAuth is correctly forwarding cookies and not causing duplicate page renders

      Test with Default Theme — Verify the issue doesn't occur with default templates to isolate whether customizations are the cause (you've already confirmed this resolves the issue)

      Why Subsequent Attempts Work

      After the first password reset attempt, browser state and cookies are properly established, preventing the duplicate request issue on subsequent attempts from the same session.

      Why Button vs Link Matters

      The difference between button and link behavior may be related to how your custom theme implements these elements. Buttons might use different form submission methods or lack the postMethod=true parameter that converts GET requests to POST requests (which link scanners typically don't replicate).

      Related Documentation Confirmation Required Template Variables — Details on the confirmation required template introduced in version 1.49.0 Email Link Workflow Improvements (FusionAuth 1.49) — Explains the confirmation page feature designed to prevent link scanners from consuming codes FusionAuth Cookies Reference — Information about cookies used by FusionAuth's hosted login pages GitHub Issue #2253: Email MFA codes sent multiple times during password resets — Related issue about duplicate MFA codes Community Discussion: Password Reset Expired Link - Safelinks Users — Discussion about link checker issues with password reset flows
    • 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
      109
      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
      126
      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
      282
      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
      327
      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
      940
      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.

    • D

      Unsolved FusionAuth security vulnerability: fixed by 1.69.4

      Q&A
      • • • damien
      2
      0
      Votes
      2
      Posts
      392
      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

      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
      277
      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