We have a list of ChromeOS Devices assigned to a group of people. Every user needs to login onto their ChromeOS machine with their Google account. I can find all devices where a given user has been signed on, but I cannot find the exact time they logged in onto that machine.
The only information available to me is the date when they logged in and how much time they had an active session on it.
Here's an example of what data I get from Google API.
{
"activeTimeRanges": [
{
"activeTime": 960021,
"date": "2017-09-20"
},
{
"activeTime": 1440016,
"date": "2017-09-21"
},
{
"activeTime": 1200032,
"date": "2017-10-03"
}
],
"deviceId": "xxxcccvvvbbb-xxxcccvvvbbb",
"kind": "admin#directory#chromeosdevice",
"lastEnrollmentTime": "2017-09-14T09:46:55.407Z",
"lastSync": "2017-10-03T13:12:42.121Z",
"recentUsers": [
{
"email": "xxxcccvvvbbb@xxxcccvvvbbb.com",
"type": "USER_TYPE_MANAGED"
}
],
"serialNumber": "xxxcccvvvbbbxxxcccvvvbbb",
"status": "ACTIVE"
}
So I can clearly see the user and the details I need to lock their device, but how can I be sure they were logged in onto this machine at a given time? I can only see they were active for 20 mins that day.
I am not sure however, if the lastSync can be used as the timestamp of when they logged in.
I have seen how to search for dates as well, such as: sync:2013-10-12, but I don't know what operator to use for finding the active session times.
https://support.google.com/chrome/a/answer/1698333
I have read Google's documentation, but haven't found anything pointing me towards the login times. I thought maybe I could find someone here that encountered this problem as well. Or maybe someone from Google that has worked on this API.