Remove groups from disabled users (Advanced GAM)

285 views
Skip to first unread message

Jeffrey Uchtman

unread,
Jul 18, 2022, 1:01:09 PM7/18/22
to google-ap...@googlegroups.com

I am attempting to remove all groups from my disabled users. I found some commands that Ross Scroggs posted. Command was gam ou /DisabledUserOU delete groups. I am trying this against my disabled users OU but getting the following error:

ERROR: Invalid choice (users): Expected <accept|add|append|archive|cancel|check|claim|clear|collect|copy|create|dedup|delegate|delete|deprovision|draft|draftemail|empty|filter|forward|get|hide|imap|import|importemail|info|insert|insertemail|label|language|list|modify|move|pop|print|profile|purge|remove|replacedomain|sendas|sendemail|show|signature|signout|spam|suspend|sync|transfer|trash|turnoff2sv|undelete|unhide|unsuspend|untrash|update|vacation|waitformailbox|watch|wipe>

Help: Syntax in file /Users/12352/bin/gamadv-xtd3/GamCommands.txt

Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

 

Any help would be appreciated.

 

Thanks

 

 

photo

Jeffrey Uchtman
District Network & Systems Administrator

Columbus Public Schools

2508 27th Street, Columbus, NE 68601

(402)563-7000 x12352 | ucht...@discoverers.org

www.columbuspublicschools.org

 

CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. 



CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited.

This communication, along with any attachments, is covered by federal and state laws governing electronic communications and may contain confidential and legally privileged information.  If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use or copying of this message is strictly prohibited.  If you have received this in error, please reply immediately to the sender and delete this message.

Ross Scroggs

unread,
Jul 18, 2022, 2:24:59 PM7/18/22
to google-ap...@googlegroups.com
Jeffrey,

You didn't post the first line of the error which shows the command with the error location highlighted; please post that.

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/09D9C8A0-B9DA-473C-B1F3-F20E24891D9E%40discoverers.org.


--

Jeffrey Uchtman

unread,
Jul 18, 2022, 2:45:43 PM7/18/22
to google-ap...@googlegroups.com

Sorry about that:

 

12352@AD-tech-12352 ~ % gam ou /Disabled Users/Staff delete groups

Command: /Users/12352/bin/gamadv-xtd3/gam ou /Disabled >>>Users/Staff<<< delete groups

 

ERROR: Invalid choice (users/staff): Expected <accept|add|append|archive|cancel|check|claim|clear|collect|copy|create|dedup|delegate|delete|deprovision|draft|draftemail|empty|filter|forward|get|hide|imap|import|importemail|info|insert|insertemail|label|language|list|modify|move|pop|print|profile|purge|remove|replacedomain|sendas|sendemail|show|signature|signout|spam|suspend|sync|transfer|trash|turnoff2sv|undelete|unhide|unsuspend|untrash|update|vacation|waitformailbox|watch|wipe>

Help: Syntax in file /Users/12352/bin/gamadv-xtd3/GamCommands.txt

Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

 

Jeff

Ross Scroggs

unread,
Jul 18, 2022, 2:48:29 PM7/18/22
to google-ap...@googlegroups.com
Jeffrey,

The OU has a space in its name, it must be enclosed in quotes.

gam ou "/Disabled Users/Staff" delete groups

Ross



--

Jeffrey Uchtman

unread,
Jul 18, 2022, 3:04:13 PM7/18/22
to google-ap...@googlegroups.com

Sorry for overlooking that. Works as expected. Thank You!

Vini Bettega

unread,
Jul 21, 2022, 10:03:18 AM7/21/22
to GAM for Google Workspace
For me it is not working this command and I don't understand why it is expected calendar in the error message

 ~ % gam ou "/Leavers" remove groups

Command: /Users/vini/bin/gamadv-xtd3/gam ou "/Leavers and login denied" remove >>>groups<<< 


ERROR: Invalid choice (group): Expected <calendar>

Help: Syntax in file /Users/vinibettega/bin/gamadv-xtd3/GamCommands.txt

Ross Scroggs

unread,
Jul 21, 2022, 10:53:31 AM7/21/22
to google-ap...@googlegroups.com
Vini,

You want:
~ % gam ou "/Leavers" delete groups

Ross



--
Reply all
Reply to author
Forward
0 new messages