taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
714 stars 87 forks source link

Deleting contacts from users not working #245

Closed owieman closed 2 years ago

owieman commented 2 years ago

Using the following command returns the contact on the user account I want to delete, so I know yyy contact exists in xxx user's contacts: gam user xxx@domain.com print contacts emailmatchpattern yyy@domain.com

However, after running the delete command, yyy contact still remains when running the print command again: gam user xxx@domain.com delete contacts emailmatchpattern yyy@domain.com

This is the output I get after running the delete command: Getting all People Contacts for xxx@domain.com Got 890 People Contacts... User: xxx@domain.com, Delete maximum of 890 People Contacts

Nothing else happens after that.

Currently running: GAMADV-XTD3 6.13.09 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller Ross Scroggs <ross.scroggs@gmail.com> Python 3.10.1 64-bit final Windows 10 10.0.17763 SP0 Multiprocessor Free AMD64

taers232c commented 2 years ago

You need to update to a current version.

Send me a Meet/Zoom invitation

ross.scroggs @ gmail.com

owieman commented 2 years ago

Same result after updating.

H:\>gam

GAMADV-XTD3 6.15.23 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller Ross Scroggs <ross.scroggs@gmail.com> Python 3.10.2 32-bit final Windows 10 10.0.17763 SP0 Multiprocessor Free AMD64 Path: D:\gamadv-xtd3 Config File: *ommitted*, Section: DEFAULT, customer_id: my_customer, domain: You're running a 32-bit version of GAM on a 64-bit version of Windows, upgrade to a windows-x86_64 version of GAM Help: Syntax in file D:\gamadv-xtd3\GamCommands.txt Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

H:\>gam user xxx@domain.com delete contacts emailmatchpattern yyy@domain.com Getting all People Contacts for xxx@domain.com Got 890 People Contacts... User: xxx@domain.com, Delete maximum of 890 People Contacts

H:\>gam user xxx@domain.com print contacts emailmatchpattern yyy@domain.com Getting all People Contacts for xxx@domain.com Got 890 People Contacts... Getting all Other Contacts for xxx@domain.com Got 949 Other Contacts... User,resourceName,emailAddresses,emailAddresses.0.value,names,names.0.displayName,names.0.displayNameLastFirst,names.0.familyName,names.0.givenName,names.0.unstructuredName,photos,photos.0.default,photos.0.url,updateTime *contact result omitted here but shows*

taers232c commented 2 years ago

If the resourceName of the desire contact starts with otherContacts, then do: gam user @. delete othercontacts emailmatchpattern @.

Ross

On Thu, Feb 24, 2022 at 2:58 PM owieman @.***> wrote:

Same result after updating.

H:>gam

GAMADV-XTD3 6.15.23 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller Ross Scroggs @.**> Python 3.10.2 32-bit final Windows 10 10.0.17763 SP0 Multiprocessor Free AMD64 Path: D:\gamadv-xtd3 Config File: ommitted*, Section: DEFAULT, customer_id: my_customer, domain: You're running a 32-bit version of GAM on a 64-bit version of Windows, upgrade to a windows-x86_64 version of GAM Help: Syntax in file D:\gamadv-xtd3\GamCommands.txt Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

H:>gam user @. delete contacts emailmatchpattern @. Getting all People Contacts for @. Got 890 People Contacts... User: @., Delete maximum of 890 People Contacts

H:>gam user @. print contacts emailmatchpattern @. Getting all People Contacts for @. Got 890 People Contacts... Getting all Other Contacts for @. Got 949 Other Contacts... (contact result omitted here)

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/245#issuecomment-1050343973, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL5GOZDNGKKDZVPXQILU42ZZFANCNFSM5PIUVCUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- Ross Scroggs @.***

owieman commented 2 years ago

That worked! I looked top to bottom through the commands and didn't see that option so thought it was a bug.

Thank you, much appreciated!