Logins per day and usage time
Hi,
Is it possible to get the logins per day and usage time via the API?
Regards
-
You can get a list of logins from the Enterprise Events endpoint. You can filter the event stream to only return login events by setting the value of the event_type parameter to LOGIN. You can also filter the time range to only return login events for a specific date by using the created_after and created_before parameters.
You can sum up the login events by day to get the daily usage stat. One thing to note is a single user might have multiple login events in day, so if you are looking to get the number of unique users who login to Box per day, you would have to deduplicate multiple logins by the same user in day to count as one login for that day.
Unfortunately, we don't have an easy way to measure usage time. One workaround to get a rough estimate of usage time would be to look at the User Events endpoint, which returns a list of events for a specific user. You could look at the list of events that cluster after a login event, and then estimate usage time by looking at the time range for those cluster of events.
Please sign in to leave a comment.
Comments
1 comment