BE: Add "Last login date" to Billable Members API

Problem to solve

There is no way to view the Last Login Date of your group members on .com (either through the GUI or via the API)

Intended users

Further details

Since we don't allow Admin access on .com, Group administrators need a good way to view the Last Login Date of members in their group. Currently, you can sort by oldest_sign_in and recent_sign_in, but it doesn't show the actual date of the login.

Proposal

Permissions and Security

I believe the 'oldest_sign_inandrecent_sign_in` is currently restricted to the Admin API, but it would make sense to add it to the Group Member API as well.

What does success look like, and how can we measure that?

Group Owners on gitlab.com are able to view their user's Last Login/signin Date.

What is the type of buyer?

This should be a Core feature. Everyone on .com should be able to effectively manage users in their Group.

Development Notes

NOTE that last_sign_in_at is not the last time the user logged in. That is current_sign_in_at. last_sign_in_at holds the previous value of current_sign_in_at.

Availability & Testing

Unit tests for the added functionality and perhaps a feature test (or will later be included as part as an assertion in one of the e2e tests that cover that general area as well)

Edited by Ammar Alakkad