Generate "Application Usage" Report through API Skip to main content
https://support.okta.com/help/answers?id=906f0000000dfjkia4&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Iury SimasIury Simas 

Generate "Application Usage" Report through API

Is there any way to extract the information of when was the last time each user used (logged in) an application through the API ?

I know there is already a report for it but it has to be extracted manually and for each application at a time

Vlad IvascuVlad Ivascu (Okta, Inc.)
Unfortunately the exact call for obtaining the same results as given by these reports is not available. However, with the use of our API documentation (http://developer.okta.com/docs/api/getting_started/design_principles.html), one could obtain similar results.
For example, using the attached call will bring up the last 100 app authentication events:
{{url}}/api/v1/events?limit=100&filter=action.objectType eq "app.auth.sso" and target.id eq "{{appId}}"

Thank you,
Vlad Ivascu