querying last login time via APIs

38 views
Skip to first unread message

Paul Chauvet

unread,
Sep 20, 2011, 12:30:10 PM9/20/11
to google-app...@googlegroups.com
Hello all,

Is there a way (preferably with the Python APIs since its what I'm using for provisioning) to get a user's last login time?  I know if I look in the domain administration web panel, I can find this ("Last signed in Sep 15" for example) but don't see where to find this in the API.

If there is a method of doing this that you could share, I'd appreciate it.  

Gunjan Sharma

unread,
Sep 20, 2011, 12:52:37 PM9/20/11
to google-app...@googlegroups.com
Hello Paul

What you are looking for is available in Reporting API.
You can download the Client Library from here.

Thanks
Gunjan Sharma

Paul Chauvet

unread,
Sep 20, 2011, 2:52:52 PM9/20/11
to google-app...@googlegroups.com
Thanks much Gunjan, that is useful.  I saw that before though and it seems to be giving reports for all users, as opposed to a single user at a time (unless I'm missing something).

Is there an option with the gdata.apps.service library (something like service.RetrieveUser) or some other method for a single user lookup only?

Gunjan Sharma

unread,
Sep 20, 2011, 3:14:31 PM9/20/11
to google-app...@googlegroups.com
Hello Paul

The reporting API is for retrieving the data for entire domain as a report. So it is currently not possible to retrieve a single user data.
But if you feel that should be a available feature in the API you can file a issue requesting the same here.
At present you can always retrieve data for a single user from the entire feed.

Thanks
Gunjan Sharma
Reply all
Reply to author
Forward
0 new messages