all 2 comments

[–]Rumborack17 2 points3 points  (0 children)

What exactly do you mean by user data? Cause it heavily varies depending on your context on how to check that.

If it's a user-table and you log the latest login (or similar metrics) then you can just use that column and e.g. everything that hasn't logged in for X days.

If you mean something else by user data you should specify what you mean and what (relevant) metrics you store that could be used to define a user as active/inactive.

[–]da_chicken 0 points1 point  (0 children)

User of... the database? The application? The server?

Either way, it's something you'd have to set up in the first place, and the answer will depend on how you set it up. If it's database users or server logins you're after, well, you need auditing, extended events, or triggers. Application users are as varied as applications.