@chad-hurd Awesome that you got if figured out. Do you mind sharing what, specifically, was wrong with the setup? It may help others down the road.
FAQ Posters
Users who have rights to post in the FAQ category.
-
RE: POST /api/user/import not triggering webhook `user.bulk.create'posted in Q&A
-
RE: POST /api/user/import not triggering webhook `user.bulk.create'posted in Q&A
@chad-hurd That is interesting. I will check this out over the next day or two and see if there is anything I can learn. Has anyone else had experience with this?
-
RE: How to Retrieve Last Login Dates for Multiple Users in FusionAuth via the Search APIposted in Frequently Asked Questions (FAQ)
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
-
-
How to Retrieve Last Login Dates for Multiple Users in FusionAuth via the Search APIposted in Frequently Asked Questions (FAQ)
We have ~8,000 usernames/emails and want to look up each user’s last login date. The UI seems to allow searching only one email at a time. Is there a way to upload a CSV of usernames and get all of their lastLoginInstant values?
-
RE: How to Fix 'could not find memberId' Errors When Removing Group Members in FusionAuthposted in Frequently Asked Questions (FAQ)
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.
-
How to Fix 'could not find memberId' Errors When Removing Group Members in FusionAuthposted in Frequently Asked Questions (FAQ)
I tried using delete_group_members() to remove users from a group, but each request failed with a “could not find memberId” error. I tried passing in both the group ID and user ID, but it didn’t work. I was only able to get it to work manually by passing a members_delete_request directly to the client. Is there a way to get delete_group_members() to work properly, or does it have a bug?
-
RE: Account Portal - Is Federation to our Enterprise IDP possible?posted in Q&A
@batmysta, Thanks for clearing that up. Unfortunately, there is no way I know of to configure federated authentication with the FusionAuth Account Portal.
-
RE: Account Portal - Is Federation to our Enterprise IDP possible?posted in Q&A
@batmysta, In general, you should be able to. Please check out our documentation on Identity Providers. If that does not answer your question, please give us a little more detail and we will see what we can do to help you out.
-
RE: How to Fix Missing End-of-Month Data in FusionAuth Daily Active Users and Registrationsposted in Frequently Asked Questions (FAQ)
This issue was addressed in version 1.56.0. Make sure your FusionAuth instance is updated to the latest version, as several reporting-related fixes have been released that resolve this specific problem.
-
How to Fix Missing End-of-Month Data in FusionAuth Daily Active Users and Registrationsposted in Frequently Asked Questions (FAQ)
When tracking daily active users and registration numbers, the data for the last day of each month is missing regardless of the number of days in that month. The last day’s data is missing from both the UI and the API response. Is there a way to determine why this is happening?