User Oauth Token report - authorization date

115 views
Skip to first unread message

DJNinNZ

unread,
Mar 6, 2024, 4:17:48 PM3/6/24
to GAM for Google Workspace
Hi there,
when using the Workspace admin console I can look at the Apps a user connected apps and it includes the date the user authorized the app.

However when I use Gam to print the Oauth tokens for a user, the date it was authorized is not included. Is the authorized date data available via API.

Regards
Duncan

Jay Lee

unread,
Mar 6, 2024, 6:03:27 PM3/6/24
to google-ap...@googlegroups.com
Yes, it does. Take a look at this command that shows when the user logged into nytimes.com with their Google account (bold for emphasis on date):

$ gam report oauthtoken filter "client_id==1005640118348-amh5tgkq641oru4fbhr3psm3gt2tcc94.apps.googleusercontent.com"
Getting Reports for all users
Got 1 Report...
name,actor.email,actor.profileId,app_name,client_id,client_type,id.applicationName,id.customerId,id.time,id.uniqueQualifier,ipAddress,product_bucket,scope
authorize,ad...@pdl.jaylee.us,102222426890255147937,The New York Times,1005640118348-amh5tgkq641oru4fbhr3psm3gt2tcc94.apps.googleusercontent.com,WEB,token,C03uzfv2s,2024-03-06T21:19:30Z,8054287224226104403,8.8.8.8,IDENTITY OTHER IDENTITY OTHER IDENTITY OTHER,https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile openid

Jay Lee


The information contained in this email is privileged and confidential and intended for the addressee only. If you are not the intended recipient, please respect that confidentiality and do not disclose, copy or make use of its contents. If received in error, please destroy this email and contact the sender immediately. Thank you.

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/44723e52-f1d0-4f4b-be53-e6c5a83872f6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages