'Which Google API(endpoint) returns SSO login activities

Tell me please, which Google API(endpoint) returns SSO login activities. I have Google Workspace(G-Suite) and i need to know for which applications to login was used G-suite account



Solution 1:[1]

If I understand correctly what you need is to get the list of all the third party apps that your users have logged into using their Google accounts using the Google APIs. If so, what you can use is the tokens.list method, that way your will retrieve all the tokens a user has issued to 3rd party applications.

You can use the displayText and clientId values you get in the response to identify the app, and check the scopes to see the permissions of the app. Be aware that you can only retrieve the information from the last 6 months.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fernando Lara