Hiya @Scott
Filtering those specific events I got zero activities.
If I grab all events (by just not mentioning any events) I get lots of activities, but none of them are for unlock or login. I checked the API docs and they are valid events. I'm just not getting any, at all.
I have everything reporting on max levels and as often as possible.
My mistake.
Hmmm, it was not possible to restrict the report to a single OU with a simple insert of "ou /Students/School1" between chrome and events, as the gam wiki suggests.
Using select ou /Students/School1 in that position, I am getting results. We'll see what it ends up as, after it has slowly walked through all 300+ users. 🙂
Alright, that worked.
gam redirect csv ./ChromeLogins.csv report chrome select ou "/Students/School1" events CHROMEOS_AFFILIATED_UNLOCK_SUCCESS,CHROME_OS_LOGIN_EVENT start -7d
That gives us a list of logins, with DEVICE_NAME in the third column (and it looks an awful lot like a serial number 😎) and id.time in another column. With that, you can resort the data based on serial and time.
If you have a large organisation, you may want to split your data into files per OU, as my list for seven days and 300 students gave me 2430 rows.
More efficient.
Of course, you can let GAM filter some irrelevant columns for you, if you like, and then cram more users into the same file. We want some of the following columns.
DEVICE_NAME, id.time, DEVICE_USER, ORG_UNIT_NAME, name, UNLOCK.TYPE, type
This looks a nice expanded GAM command to remove some clutter, and order the data, a little bit.
gam config csv_output_header_filter "DEVICE_NAME,id.time,DEVICE_USER,ORG_UNIT_NAME,name,UNLOCK.TYPE,type" redirect csv ./ChromeLogins.csv report chrome events CHROMEOS_AFFILIATED_UNLOCK_SUCCESS,CHROME_OS_LOGIN_EVENT start -7d
Ordering the data wasn't possible (with that command), but it filtered everything nicely.
I got a nice csv with 33k rows for a little over 6k users, where about 4k of them use CBs.
--
https://wheretofind.me/@NoSubstitute