How to find out the last active time of a GitLab user?

I want to block the users who have not logged in, use GitLab API, or use git commands to a GitLab service for more than 90 days?

I try to use the python-gitlab Python library to do it and I find out there are ‘last_sign_in_at’: ‘2023-01-13T10:15:10.611+08:00’, and '‘last_activity_on’: ‘2023-02-03’ attributes for a user.

And I also find out the “Last activity” field in the Users web UI.

Is the last_activity_on attribute what I want?