Purging with GYB purges the wrong mailbox #489
Unanswered
mvmaastricht
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all a GREAT thank you to the GAM team for developing GYB! I'm using it to migrate emails of old nameless IMAP accounts from our provider (like
hr@mydomain.com
) to equivalent Google Groups in Google Workspace. I do that with a special account account I created for this:migrate@mydomain.com
. I installed GYB from the admin accountadmin@mydomain.com
. I want to use the following steps:migrate@mydomain.com
Workspace account;migrate@mydomain.com
to the corresponding Google Group;migrate@mydomain.com
account;However, the purge command wipes the admin account
admin@mydomain.com
in stead of the accountmigrate@mydomain.com
...I've use the following command:
gyb --email migrate@mydomain.com --action purge --use-admin admin@mydomain.com
What did I do wrong?
Oh, and by the way: if I use
gyb --email migrate@mydomain.com --action purge --use-admin migrate@mydomain.com
I get:
EDIT: in the meantime I discovered that I failed to give the right access to the migrate account (reading only). After revoking access from the account itself, I wasn't be able to regain access: kept on getting
ERROR: ('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'})
After trying lots of times, I deleted the migrate account completely and created a new migration account. After giving full access, I was able to purge with the command
gyb --email migrate@mydomain.com --action purge --use-admin migrate@mydomain.com
(so using
--use-admin migrate@mydomain.com
which is not the admin account...)So my first question remains: why did GYB purge the admin account, while leaving the migrate account untouched?
Beta Was this translation helpful? Give feedback.
All reactions