Active Users per Database connection

Hello,

I am trying to find a way to know how many active users do i have monthly per database connection. Right now i am NOT using a custom database. Would like to understand if there is a way to get this sort of report or if i need to do it myself, how would be the best way to do it.

Thank you!

Hi @jose.alvarez,

Welcome to the Community!

Unfortunately, the Management API’s GET/api/v2/stats/active-users endpoint does not allow you to query by connection. However, you can use the GET/api/v2/users endpoint with the connection query parameter to find this data:

https://YOUR_DOMAIN/api/v2/users?connection=YOUR_CONNECTION_NAME&search_engine=v3&include_totals=true

You can then filter the returned list of users to see how many of the users have logged in during the last 30 days.

To make Management API requests, you’ll need to retrieve an Access Token, which you can read about here: Management API Access Tokens

1 Like

Thanks for the quick and accurate response, Stephanie!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.