How to get user's Last active time programmatically?

Hi, we can see the last active time under Manage users console, my questions is if there is a way to get this information from API or AWS CLI? I tried describe_user, but it didn’t include the time.


1 Like

Hi @Jiaye_Liu -

I don’t believe you can do this using the QuickSight API. You could use Cloudtrail to grab the events (API, logs, queries) and then aggregate to produce a pseudo last active time.

CLI example:

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource, AttributeKey=EventName,AttributeValue=GetDashboard --max-results 1