GAM Error Message " Token has been expired or revoked"

599 views
Skip to first unread message

IS ICT

unread,
Feb 17, 2022, 9:26:03 PM2/17/22
to GAM for Google Workspace
Dear All 

We got the error message when we try to run the GAM command to update our user content. 

The error message is that "  google.auth.exceptions.refresherror: (('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'})
[5536] Failed to execute script '__main__' due to unhandled exception!

Regards
Ivan

Ross Scroggs

unread,
Feb 17, 2022, 10:05:03 PM2/17/22
to google-ap...@googlegroups.com
Do:
gam oauth delete
gam oauth create

--
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/5aaa008f-d260-4ecf-bbf2-5d41e7021a38n%40googlegroups.com.

IS ICT

unread,
Feb 17, 2022, 11:44:52 PM2/17/22
to GAM for Google Workspace
Thanks Ross

The problem is fixed.

Thanks
Ivan

Ricardo Ardila Vetrovec

unread,
Jun 13, 2022, 3:59:06 PM6/13/22
to GAM for Google Workspace
I got the same problem and with the solution described aboved works ok

but, why this happened?

Reply all
Reply to author
Forward
0 new messages