How to get user's list who did not access Dynatrace Managed from long time

We have a requirement where we need to list down the user’s name who did not access from a long time.

The purpose is to remove an unwanted user’s who is been onboard and not performing anything.

There is no direct way to do it currently.

Scan /log/server/user.audit.log and get usernames that logged in recently. Compare it with the list of users that you can pull via REST API. For instance for each username associate last login timestamp.