GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.61k stars 207 forks source link

--service-account not working - 403 when fetching each individual message id #258

Closed sxe7532 closed 4 years ago

sxe7532 commented 4 years ago

The issue tracker is for reporting product deficiencies. How do I questions should be posted to the discussion forum at https://groups.google.com/group/got-your-back. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

Full steps to reproduce the issue:

  1. Run gyb --email yourusersemail@yourcompany.com --service-account

Expected outcome (what are you trying to do?): Backup a google user's email account

Actual outcome (what errors or bad behavior do you see instead?): Successfully requests a list of message Ids but fails when requesting each message id.

<HttpError 403 when requesting https://www.googleapis.com/gmail/v1/users/me/messages/1*>

HJZWEERS commented 4 years ago

I am having the same problem I have created a new project and I still have the same issue.. It did work 2 weeks ago,

HJZWEERS commented 4 years ago

Ok, it works only when the account you are trying to backup is not suspended.

sxe7532 commented 4 years ago

You are right! Though it worked on suspended accounts last week. Did something change?

HJZWEERS commented 4 years ago

I just opened a ticket with Google as transferreing data from a Gsuite account when you delete it is also not working, you will have to enable the account and use the transfer ownership tool on the drive admin for it to work. So looks like an issue on Google's side.

It looks very related to me :)

mystix commented 4 years ago

Facing the same issue -- error when attempting to backup suspended gsuite user accounts.

Seems like google changed something on their end in the past month (I ran into this issue early last week).

jay0lee commented 4 years ago

checking with Google to see if there was a change here but I have no timeline on a response. For now I suggest resetting user's password and locking down the account rather than suspending while GYB backup is occurring.

HJZWEERS commented 4 years ago

Hi all, this seems to be working again, just did a backup on a suspended account and it didn't come up with any errors.

mystix commented 4 years ago

Hi all, this seems to be working again, just did a backup on a suspended account and it didn't come up with any errors.

Just tested on a suspended account as well -- I can confirm backup on a suspended account now works correctly.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.