• 0 Votes
    2 Posts
    356 Views
    F
    The user_support_manager role is intentionally restricted from modifying identity information that could be used for authentication, including email addresses and usernames. This is a security measure to prevent potential account takeover scenarios. According to the FusionAuth role documentation, the user_support_manager role allows editing users except for authentication-related identity information. If you need to grant the ability to change user email addresses, the minimum required role is user_manager. There is no built-in role between user_support_manager and user_manager that allows email modification while restricting other permissions. If you need more granular control over what operations are permitted, you should implement custom logic using the FusionAuth API. This approach allows you to: Control exactly which fields can be modified Implement your own authorization logic Add additional security checks or approval workflows Using the API gives you full flexibility to define permission boundaries that match your specific security requirements.
  • 0 Votes
    2 Posts
    337 Views
    F
    If an admin user is locked out due to MFA, you have several options: Use Recovery Codes (if available): If the user previously generated recovery codes, they can use one of those codes to complete the MFA challenge and regain access. Once logged in, they can disable or reconfigure MFA. Generate Recovery Codes via API: Another admin with API access can generate recovery codes for the locked-out user using the Generate Recovery Codes API endpoint: POST /api/user/two-factor/recovery-code/{userId} Replace {userId} with the locked-out user's ID. This will generate new recovery codes that can be shared with the user to complete their MFA challenge. Have Another Admin Disable MFA: If you have another admin user with access to the FusionAuth admin UI, they can navigate to the locked-out user's account and disable MFA directly from the user management interface. Users with the admin role can remove MFA methods from any user without requiring a one-time verification code. Navigate to Users → Manage User → Multi-Factor tab, click the red trash can icon next to the MFA method, and confirm the removal. Use the User API to Remove MFA: An admin with API access can also remove MFA methods by updating the user object directly. Retrieve the user via the User API, remove the methods from the twoFactor array, and then PUT the updated user back. Note that you must use PUT (not PATCH) due to how array handling works: # Retrieve the user curl -XGET -H "Authorization: $API_KEY" \ 'https://your-fusionauth-url/api/user/{userId}' # Remove the twoFactor array entries and PUT the user back curl -XPUT -H 'Content-type: application/json' \ -H "Authorization: $API_KEY" \ 'https://your-fusionauth-url/api/user/{userId}' \ -d '{user object with twoFactor array cleared}' Important Note: The standard Disable Multi-Factor API (DELETE /api/user/two-factor/{userId}) is not suitable for this situation, as it requires a valid verification code or recovery code from the user to complete the request. This API is designed for users who can still authenticate. These approaches allow you to restore access without losing the security benefits of MFA for other users. Related Documentation Multi-Factor Authentication (MFA) - Disable MFA on a User Generate Recovery Codes API Retrieve Recovery Codes API Recovery Codes Overview Disable Multi-Factor API (requires verification code - not suitable for locked-out users) The mfa_deleter Role (for support teams with restricted permissions) User Support Guide - Remove an MFA Method
  • 0 Votes
    2 Posts
    323 Views
    F
    The mfa_deleter role has hard requirements that cannot be bypassed. To remove MFA methods using this role, the target user must be notifiable through at least one verified primary identity: Verified email + configured tenant.emailConfiguration.adminTwoFactorMethodRemoveEmailTemplateId, OR Verified phone number + configured tenant.phoneConfiguration.adminTwoFactorMethodRemoveTemplateId These requirements are by design and cannot be adjusted. The mfa_deleter role includes these safeguards to reduce the risk of abuse—when an MFA method is removed via this role, FusionAuth sends a notification to the affected user, so they must have a verified communication channel available. Workarounds You have two options to remove MFA for users without verified contact information: 1. Use the Admin role Users with the Admin role are not subject to these verification requirements and can remove MFA methods from any user in the Admin UI. 2. Use the API Remove MFA methods programmatically using the Update a User API: PATCH /api/user/{userId} Authorization: <your-api-key> Content-Type: application/json { "user": { "twoFactor": { "methods": [] } } } This approach allows you to build a custom support tool that removes MFA without granting full admin privileges to support staff. Related Documentation The mfa_deleter Role - Details on the mfa_deleter role's constraints and requirements User Support Guide: Remove an MFA Method - Step-by-step instructions for using the mfa_deleter role Update a User API - API documentation for updating user properties, including MFA methods Admin Roles - Complete list of FusionAuth Admin UI roles and their permissions Admin Two-Factor Authentication Method Removed Email Template - Template used for notifications when admin removes MFA Admin Two-Factor Authentication Method Removed SMS Template - SMS template for MFA removal notifications
  • 0 Votes
    2 Posts
    380 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
  • 0 Votes
    2 Posts
    517 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
  • 0 Votes
    2 Posts
    579 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
  • 0 Votes
    2 Posts
    531 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
  • 0 Votes
    2 Posts
    537 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
  • 0 Votes
    2 Posts
    539 Views
    F
    This behavior occurs when the client sends an Accept-Encoding header that includes compression algorithms, but FusionAuth's response handling doesn't support the requested encoding method in certain configurations. The solution is to explicitly use Accept-Encoding: identity in your API requests. The identity value indicates that no encoding transformation should be applied, which FusionAuth handles correctly. If you're using an HTTP client library that automatically adds Accept-Encoding: gzip or similar headers, you should: Override the default Accept-Encoding header to use identity Or configure your HTTP client to not send compression-related headers automatically Example: GET /api/user/search HTTP/1.1 Host: your-fusionauth-instance.com Authorization: <your-api-key> Accept-Encoding: identity This ensures consistent API responses without encountering 406 errors related to content encoding negotiation.
  • 0 Votes
    2 Posts
    499 Views
    F
    You can retrieve all identity provider links for a user by sending a GET request to: /api/identity-provider/link?userId={userId} Important: The parameter name is case-sensitive and must be userId (with capital "I"), not userid. The error you're seeing occurs when the parameter is lowercase userid instead of the correct camelCase userId. Using the correct casing will return a list of all identity provider IDs that the user is currently linked to. Make sure your request looks like: GET {baseUrl}/api/identity-provider/link?userId=4aa40fcd-0102-4c26-a51c-9a6c5c0c504a Authorization: <your-api-key> 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.
  • 0 Votes
    2 Posts
    407 Views
    F
    There are several ways to monitor your hosted FusionAuth deployment: Basic Health Monitoring You can use the System Status API to get basic information about your deployment, including whether it is healthy. For dedicated health checks (particularly useful for load balancers), there's also the Health API available since version 1.51.1. Detailed Metrics with Prometheus For more detailed performance monitoring, you can configure Prometheus to retrieve system metrics from FusionAuth. FusionAuth exposes: JVM-level gauges: memory usage, garbage collection stats, thread counts, class loading, buffer pools Request timers: endpoint latency and request counts (e.g., prime_mvc_* metrics) You can then set up Prometheus dashboards to visualize this data and track CPU, memory, and other performance metrics over time. See the FusionAuth Prometheus documentation for configuration details and the Prometheus Metrics API for endpoint information. Important Considerations for Hosted Deployments If your hosted FusionAuth deployment has multiple compute nodes, be aware that both the Status API and Prometheus metrics endpoints return data per-node. Since requests are round-robined across nodes, successive API calls may hit different nodes and return inconsistent data. This makes direct polling less reliable for multi-node deployments. Additional Monitoring Options Beyond Prometheus, FusionAuth can integrate with other monitoring tools: Datadog: Use the Datadog Agent with OpenMetrics integration CloudWatch: Monitor FusionAuth metrics in AWS environments Grafana: Visualize Prometheus data with pre-built dashboards You can also access: System logs: Available via API (exportable as ZIP files) Audit logs: Track administrative actions via API or webhook Event logs: Debug information for external integrations Login records: Successful login history with timestamps, IPs, and user details Webhooks: Get real-time notifications for specific events Related Documentation Monitoring FusionAuth Overview System Status API System Health API Prometheus Integration Guide Prometheus Metrics API Datadog Integration CloudWatch Integration
  • 0 Votes
    2 Posts
    341 Views
    F
    You can use the User Search API with a must_not clause in the Elasticsearch query to exclude users registered to a specific application. Here's an example: curl -X POST https://sandbox.fusionauth.io/api/user/search \ -H 'Authorization: <your-api-key>' \ -H 'Content-Type: application/json' \ -d '{ "search": { "accurateTotal": true, "numberOfResults": 100, "startRow": 0, "query": "{\"bool\":{\"must_not\":[{\"nested\":{\"path\":\"registrations\",\"query\":{\"bool\":{\"must\":[{\"match\":{\"registrations.applicationId\":\"<your-application-id>\"}}]}}}}]}}" } }' Key points: The must_not clause excludes users matching the nested query The nested query targets the registrations path since registrations are nested objects in the Elasticsearch mapping Inside the nested query, the must clause matches the specific applicationId Replace <your-application-id> with the UUID of your target application This returns users who either have no registrations at all, or have registrations to other applications but not the specified one You can paginate through results using startRow and numberOfResults if you have a large user base. Important: This approach requires the Elasticsearch search engine (not the database engine). You must use the search.query parameter with raw Elasticsearch JSON when querying against registrations, because it is defined as a nested datatype in the Elasticsearch mapping. The queryString parameter cannot be used for nested fields like registrations with expected results. Tip: You can use the Admin UI → Users → Advanced → Show Elasticsearch Query toggle to build and test queries interactively before using them in the API. Related Documentation User Search API - Elasticsearch Search Engine - Main API reference for searching users with Elasticsearch Searching Users With Elasticsearch or OpenSearch - Searching With query - Guide on using the query parameter for advanced searches User Search API - Additional Query Examples - Examples of various query patterns including nested queries Registrations - Core concepts documentation explaining the relationship between Users, Applications, and Registrations Field Mappings - Available fields for matching in Elasticsearch searches
  • 0 Votes
    2 Posts
    261 Views
    F
    OAuth 2.0 Token Exchange (RFC 8693) is indeed designed for this kind of scenario. It allows you to exchange an existing token (the user's web-audience token) for a new token with a different audience (e.g. mcp) while maintaining the user's identity and authorization context. Important Note: FusionAuth does not currently implement RFC 8693 (OAuth 2.0 Token Exchange) natively. There is an open GitHub issue tracking this feature request. However, FusionAuth provides alternative approaches to achieve similar outcomes. How Token Exchange Works (RFC 8693 Concept) User authenticates and receives a token with audience: web. AI agent receives a request from the user via the chat interface. Agent exchanges the token: The agent (or a backend service acting on its behalf) calls the token exchange endpoint, providing: The original web-audience token as the subject_token The desired new audience (mcp) in the audience parameter Optionally, a narrower set of scopes if the downstream service requires fewer permissions New token issued: The authorization server returns a new token with audience: mcp, tied to the same user identity. Agent calls downstream service using the new token. Example Token Exchange Request POST /oauth2/token Content-Type: application/x-www-form-urlencoded grant_type=urn:ietf:params:oauth:grant-type:token-exchange &subject_token=<user-web-token> &subject_token_type=urn:ietf:params:oauth:token-type:access_token &audience=mcp &scope=mcp:read mcp:write Current Alternatives in FusionAuth Since RFC 8693 isn't supported yet, here are the recommended approaches: 1. Issue a JWT API Use the Issue a JWT endpoint to exchange a token from one application for a token for another application. This is FusionAuth's implementation of SSO for access tokens: GET /api/jwt/issue?applicationId={targetApplicationId} Authorization: Bearer <existing_access_token> This returns a new JWT with the target application's audience, preserving the user's identity. The user must be registered in both applications. 2. JWT Populate Lambda Use a JWT Populate Lambda to customize the aud claim directly. You can add multiple audiences to avoid token swapping: function populate(jwt, user, registration) { // Add multiple audiences jwt.aud = ['web', 'mcp', 'https://api.example.com']; } 3. Vend a JWT API For more complex delegation scenarios, use the Vend a JWT endpoint to create a custom JWT with free-form claims (except reserved claims like iat, exp, amr, and cnf). Key Considerations Authorization: The agent should be a registered OAuth client with permission to perform token exchanges. You may want to restrict which clients can exchange tokens and for which audiences. Scope narrowing: The new token can have a subset of the original token's scopes, ensuring least-privilege access to the downstream service. User consent: Depending on your security requirements, you may want to prompt the user to authorize the agent's access to the downstream service the first time this exchange happens. Application registration: When using the Issue JWT approach, ensure the user is registered in both the source and target applications. This approach avoids re-authentication and cleanly separates concerns: the user holds their web token, and the agent dynamically obtains the correct token for each downstream service it needs to call. Related Documentation OAuth 2.0 Grant Types - Token Exchange Grant - Overview of RFC 8693 token exchange Issue a JWT API - Exchange tokens between applications (FusionAuth's current solution) Vend a JWT API - Create custom JWTs for complex scenarios JWT Populate Lambda - Customize JWT claims including audience GitHub Issue #1471 - Track RFC 8693 implementation progress
  • 0 Votes
    2 Posts
    4k Views
    W
    You’re correct: FusionAuth’s Lambda environment does not provide access to external libraries (including AWS SDKs or SigV4 helpers), and there is no secure secrets store available to Lambdas. That means if you need AWS SigV4 signing from inside a Lambda, you would have to implement the signing logic yourself and embed any required credentials directly in the Lambda code—this is generally not considered secure. Also, if you are using FusionAuth Cloud, you cannot place Lambdas into your private network (for example, the same VPC/network as your API Gateway), so that option isn’t available in hosted deployments. If you need this capability, the recommended approach is typically to move the signing and secret handling into a system you control (for example, a backend service that FusionAuth calls), rather than performing SigV4 signing directly in a FusionAuth Lambda. Related issue tracking: https://github.com/fusionauth/fusionauth-issues/issues/1629
  • 0 Votes
    2 Posts
    3k Views
    W
    FusionAuth doesn’t support uploading a CSV to retrieve last-login timestamps. However, you can do this efficiently with the Search for Users API and return lastLoginInstant for many users at once. How to do it (batch via API) Use the User Search endpoint POST /api/user/search (set your X-FusionAuth-TenantId and Authorization headers). Send an Elasticsearch query using terms to match a batch of emails/usernames, and read lastLoginInstant from each returned user: { "search": { "query": "{\"terms\":{\"email\":[\"a@example.com\",\"b@example.com\",\"c@example.com\"]}}", "numberOfResults": 500, "startRow": 0 } } Swap email for username if that’s what you have. If your list is large, chunk it (e.g., 200–500 logins per request) and paginate with startRow / numberOfResults. (Optional) Filter by last-login date with a range query on lastLoginInstant: { "search": { "query": "{\"range\":{\"lastLoginInstant\":{\"gte\":\"2025-10-01T00:00:00Z\"}}}" } } You can also query by epoch millis if you prefer. Map results Each user object includes lastLoginInstant (epoch millis). Convert to your desired timezone/format in your script and write out a CSV. Tips If you need all users in a tenant (not just your list), you can search with a wildcard or a match-all query and page through results, then filter locally. For ongoing metrics, consider subscribing to user.login.success webhooks and recording last logins as they happen. Docs: Search for Users API (Elasticsearch): https://fusionauth.io/docs/apis/users#elasticsearch-search-engine
  • 0 Votes
    2 Posts
    3k Views
    W
    You can work around this by passing the IDs directly in your request. Here’s an example of how to structure the request correctly: from fusionauth.fusionauth_client import FusionAuthClient api_key = 'your-fusionauth-api-key' base_url = 'https://your-fusionauth-instance.com' group_id = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' user_ids_to_remove = [ 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy', 'zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz' ] client = FusionAuthClient(api_key, base_url) member_delete_request = {'members': {group_id: user_ids_to_remove}} response = client.delete_group_members(member_delete_request) if response.was_successful(): print("Successfully removed users from group!") else: print(f"Error: {response.error_response}") This approach correctly formats the request for the API to process and delete the specified users from the group.
  • Configuring Proofpoint Cloud with FusionAuth SMTP

    Moved Solved Q&A api
    2
    0 Votes
    2 Posts
    3k Views
    W
    FusionAuth uses standard SMTP for all email connections. As long as Proofpoint Cloud supports a standard SMTP connection where FusionAuth sends transactional emails, initiates a handshake, and completes delivery, the integration will work. You can reference our documentation for details on configuring SMTP with common providers: Configure Email
  • 0 Votes
    2 Posts
    3k Views
    W
    Yes, you can create a user without SMTP configured. In the Admin UI, disable the Send Setup Password option and set the password manually during user creation. If you’re using the API, set "sendSetPasswordEmail": false and include a "password" field in the user object. Users API
  • 0 Votes
    2 Posts
    3k Views
    W
    Good question. I believe this is due to how we implemented our PATCH calls. If you are making a straight API call, you can change the Content-Type header to application/merge-patch+json which will instead overwrite the existing array with whatever you have provided. That's the most straightforward way to replace array values. There are other methods detailed in the doc below but those involve removing values one by one instead of just overwriting them. The downside here is that I don't believe Client Libraries usually support the merge-patch header. https://fusionauth.io/docs/apis/#the-patch-http-method
  • How to Update user.data for a User in FusionAuth via API or Admin Forms

    Moved Solved Q&A api
    2
    0 Votes
    2 Posts
    2k Views
    W
    There are a few ways you can get what you need. You can either make these changes via the API and then they will be updated in the UI. https://fusionauth.io/docs/get-started/core-concepts/users#user-data https://fusionauth.io/docs/apis/users#update-a-user Or you can do this using custom admin forms: https://fusionauth.io/docs/lifecycle/manage-users/admin-forms