Reports API no longer working for 2-Step Verification enrollment/enforcement queries?

209 views
Skip to first unread message

Nate Ferrell

unread,
Dec 26, 2015, 6:50:49 PM12/26/15
to Google Apps Manager
Did the Reports API get updated and no longer is able to be queried for 2SV status? If so, is there a new way to query for that? Trying to search the API documentation in Google, but it's not showing anything as updated

I'm not getting anything back now, although I'm able to query for the rest of the user reports just fine. Querying for 'accounts:is_2sv_enrolled' against the Reports API now just returns the date and email of the user...

Here's what I'm running, which previously worked before.... Running this without the fields query results in the full user report, minus 2SV settings (which, IIRC, was normal prior to this and would only show the 2SV portion if you used the fields query for it specifically [correct me if I'm wrong :-P]):

GAM report users user $UserEmail fields 'accounts:is_2sv_enrolled'


I'm using the GAM 3.61 release on Windows

Jay Lee

unread,
Dec 26, 2015, 7:00:45 PM12/26/15
to Google Apps Manager

This sometimes happens that the reports Google generates for a given day don't contain all fields. Try adding:

date 2015-12-20

to the command and see if the 2sv fields are there for older days. You can file a ticket with Google support but usually these resolve themselves in a day or two.

Jay


--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/4a022982-2234-4c2c-8b1c-e9825374fc39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Jay Lee

Nate Ferrell

unread,
Dec 26, 2015, 8:51:31 PM12/26/15
to Google Apps Manager
Strange, that definitely still pulled that dates 2SV fields, so the field does still exist anyway...

Thanks for the quick help, Jay!!! I wonder if there is a pattern as to when we may be able to expect those fields to not be included, or possibly a way to query the last date when they were? I know I could add that into my own script with some elseif statements, but that would be awesome if there was something on Google's end that would accommodate for API calls where the requested field has not been updated on the most recent admin report

Anyway, cheers!


On Saturday, December 26, 2015 at 4:00:45 PM UTC-8, Jay Lee wrote:

This sometimes happens that the reports Google generates for a given day don't contain all fields. Try adding:

date 2015-12-20

to the command and see if the 2sv fields are there for older days. You can file a ticket with Google support but usually these resolve themselves in a day or two.

Jay


On Sat, Dec 26, 2015, 6:50 PM Nate Ferrell <nathanie...@pnmac.com> wrote:
Did the Reports API get updated and no longer is able to be queried for 2SV status? If so, is there a new way to query for that? Trying to search the API documentation in Google, but it's not showing anything as updated

I'm not getting anything back now, although I'm able to query for the rest of the user reports just fine. Querying for 'accounts:is_2sv_enrolled' against the Reports API now just returns the date and email of the user...

Here's what I'm running, which previously worked before.... Running this without the fields query results in the full user report, minus 2SV settings (which, IIRC, was normal prior to this and would only show the 2SV portion if you used the fields query for it specifically [correct me if I'm wrong :-P]):

GAM report users user $UserEmail fields 'accounts:is_2sv_enrolled'


I'm using the GAM 3.61 release on Windows

--

--

Jay Lee

Mark H

unread,
Jan 6, 2016, 5:54:34 PM1/6/16
to Google Apps Manager
Nate,
Were you able to get this working for current dates?
I continue to receive an error when trying to generate enrolled or enforced accounts to a report.

Nate Ferrell

unread,
Jan 6, 2016, 8:51:40 PM1/6/16
to Google Apps Manager
Mark,

It's working for me now, what error are you receiving? To clarify, I never received an error, it would just return only the user's email address and the date of the admin report instead of that + the bool value for the user's enrollment status.

If you're getting a 403 response, make sure you have the Reports API authorized.
Reply all
Reply to author
Forward
0 new messages