We have a script setup for our temp users so we can (sort of) make them use MFA. Basically the office gives them the password and one of the backup codes for the account which our script regenerates each night and puts the codes in a google share drive for that building to have access to. Its been working for months but the past few days a few of the buildings report the backup codes don't work. When I check I see the file we put in the drive has codes that don't match what they are. The script is just 4 commands per account. We have about 32 accounts.
In troubleshooting one of the ones not working I run the command gam user
XX...@ourdomain.com update backup codes it has an output of numbers but when I check the admin console and look at the codes its not updating. Has something changed? Is there some reason it seems to work for some and not others. I'm at a loss.
Script
#2 prints those codes to a file
#3 Deletes the file on the shgared drive (so they only have the current copy)
#4 uploades the file with the codes to the rive