GAM-team / GAM

command line management for Google Workspace
https://github.com/GAM-team/GAM/wiki
Apache License 2.0
3.5k stars 470 forks source link

"Delete User Other Contacts" broken? #1664

Open bmcdonnell-scb opened 12 months ago

bmcdonnell-scb commented 12 months ago

Please confirm the following

Full steps to reproduce the issue

  1. Install & configure GAM (6.58)
  2. Run gam user user@domain.com delete othercontacts emailmatchpattern "*@olddomain.com". (Substitute user@domain.com and olddomain.com per your configuration.)

Expected outcome (what are you trying to do?)

Expected to "Delete a selection of Other Contacts", per the wiki, e.g.

gam user user@domain.com delete othercontacts emailmatchpattern "test.*"
Getting all Other Contacts for user@domain.com
Got 15 Other Contacts...
User: user@domain.com, Delete maximum of 15 Other Contacts
  User: user@domain.com, Other Contact: otherContacts/c2813750813749807666, Deleted
  User: user@domain.com, Other Contact: otherContacts/c7887232007947329156, Deleted
  User: user@domain.com, Other Contact: otherContacts/c523029179688316095, Deleted
  User: user@domain.com, Other Contact: otherContacts/c4889739431064427541, Deleted
  User: user@domain.com, Other Contact: otherContacts/c6318452176100245073, Deleted

Actual outcome (what errors or bad behavior do you see instead?)

Deletion fails with error message:

ERROR: othercontacts is not a valid argument for "gam <users> delete"

taers232c commented 12 months ago

Gam 6.58 has no support for contacts, you need Advanced GAM. See: https://github.com/taers232c/GAMADV-XTD3/wiki/How-to-Upgrade-from-Standard-GAM https://github.com/taers232c/GAMADV-XTD3/wiki/How-to-Upgrade-from-Standard-GAM

Ross

Ross Scroggs @.***

On Oct 4, 2023, at 9:37 AM, bmcdonnell-scb @.***> wrote:

Please confirm the following

I have upgraded to the latest GAM release from https://github.com/GAM-team/GAM/releases https://github.com/GAM-team/GAM/releases and I still have this issue. Yes I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/gam/wiki https://github.com/jay0lee/gam/wiki Yes Full steps to reproduce the issue

Install & configure GAM (6.58) Run gam user @. delete othercontacts emailmatchpattern @.". (Substitute @.*** and olddomain.com per your configuration.) Expected outcome (what are you trying to do?)

Expected to "Delete a selection of Other Contacts", per the wiki https://github.com/GAM-team/GAM/blob/main/docs/Users-People-Contacts-Profiles.md#delete-user-other-contacts, e.g.

gam user @. delete othercontacts emailmatchpattern "test." Getting all Other Contacts for **@. Got 15 Other Contacts... User: @., Delete maximum of 15 Other Contacts User: @., Other Contact: otherContacts/c2813750813749807666, Deleted User: @., Other Contact: otherContacts/c7887232007947329156, Deleted User: @., Other Contact: otherContacts/c523029179688316095, Deleted User: @., Other Contact: otherContacts/c4889739431064427541, Deleted User: @.***, Other Contact: otherContacts/c6318452176100245073, Deleted Actual outcome (what errors or bad behavior do you see instead?)

Deletion fails with error message:

ERROR: othercontacts is not a valid argument for "gam delete"

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1664, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL3CVZV2D2TPCQVNUJ3X5WGDNAVCNFSM6AAAAAA5S5JMO2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZDMNRQGAYTSNI. You are receiving this because you are subscribed to this thread.

bmcdonnell-scb commented 12 months ago

@taers232c

Gam 6.58 has no support for contacts

Why are unsupported standard GAM commands (such as this one) included in the standard GAM wiki (link for this one)?

bmcdonnell-scb commented 12 months ago

As @taers232c suggested, I was able to execute this command using GAMADV-XTD3. (Thanks for that.)

But this is apparently still an issue for (this) standard GAM. Unless I've misunderstood the relationship between (this) standard GAM and GAMADV-XTD3, and for some reason the commands for both are mixed into this one's wiki?

taers232c commented 12 months ago

Here is the Standard GAM Wiki: https://github.com/GAM-team/GAM/wiki https://github.com/GAM-team/GAM/wiki

Please show me the page in that wiki that memtions contacts.

Ross Scroggs @.***

On Oct 4, 2023, at 10:44 AM, bmcdonnell-scb @.***> wrote:

As @taers232c https://github.com/taers232c suggested, I was able to execute this command using GAMADV-XTD3 https://github.com/taers232c/GAMADV-XTD3/. (Thanks for that.)

But this is apparently still an issue for (this) standard GAM. Unless I've misunderstood the relationship between (this) standard GAM and GAMADV-XTD3, and for some reason the commands for both are mixed into this one's wiki?

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1664#issuecomment-1747365729, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4DAMYNMYR7BYVUTETX5WOBDAVCNFSM6AAAAAA5S5JMO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXGM3DKNZSHE. You are receiving this because you were mentioned.

bmcdonnell-scb commented 12 months ago

Here is the link again to the wiki page in this repo that describes the command I'm referring to. This repo is for standard GAM, right?

Oddly, I see that there are several pages about Advanced-Gam/GAMADV-XTD3 in this repo's docs folder...?

taers232c commented 12 months ago

That's in the repo, not in the Wiki. Standard GAM is in the process of merging with Advanced GAM and the Wiki pages live there.

Ross Scroggs @.***

On Oct 4, 2023, at 10:58 AM, bmcdonnell-scb @.***> wrote:

Here is the link again to the wiki page in this repo that describes the command I'm referring to https://github.com/GAM-team/GAM/blob/main/docs/Users-People-Contacts-Profiles.md#delete-user-other-contacts. This repo is for standard GAM, right?

Oddly, I see that there are several pages about Advanced-Gam/GAMADV-XTD3 in this repo's docs folder https://github.com/GAM-team/GAM/tree/main/docs...?

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1664#issuecomment-1747384493, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL7Y2PIZNKI3EMDPH3LX5WPTLAVCNFSM6AAAAAA5S5JMO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXGM4DINBZGM. You are receiving this because you were mentioned.

bmcdonnell-scb commented 12 months ago

Ah.

Standard GAM is in the process of merging with Advanced GAM and the Wiki pages live there.

Glad to hear you've working towards clarifying things. I'll defer to you as to whether/when to close this issue.

Thanks for your help.