Gam command to archive user accounts

2,539 views
Skip to first unread message

Brian Evans

unread,
Jan 6, 2022, 7:36:14 AM1/6/22
to GAM for Google Workspace
Hi there,

I am looking for a way to use Gam to archive and unarchive user accounts without changing their OU's or changing them to suspended etc or changing their license.

Is there such a command for this?

Many thanks,
Brian

Jay Lee

unread,
Jan 6, 2022, 7:46:59 AM1/6/22
to google-ap...@googlegroups.com
gam update user jam...@acne.com archived on
gam update user jam...@acne.com archived off

Jay

--
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/9267ee89-6e17-4913-9015-c3fb6b529340n%40googlegroups.com.

Brian Evans

unread,
Jan 6, 2022, 7:58:23 AM1/6/22
to google-ap...@googlegroups.com
Thank you, works a dream 

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/7njO15R1ubM/unsubscribe.
To unsubscribe from this group and all its topics, 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/CA%2BVVBp8pbJK0ytVqFz_XGvOnaxFQOigWiPCuraja6bvDi63XXw%40mail.gmail.com.

Dominik Kugelmann

unread,
Oct 26, 2022, 8:48:46 AM10/26/22
to GAM for Google Workspace
i haven't used this command in ages, tried it again today and it failed all day until i added the `d` to archived would love to alises available for both spellings. 

Андрій Кравченко

unread,
Jul 24, 2023, 2:01:07 PM7/24/23
to GAM for Google Workspace
Hi team!
Could you please help. 
I want to use bulk operation using csv file in purpose to assign this archive type of license to many users at once:  Google Workspace Enterprise Standard - Archived User 
The command works perfect: 
gam csv d:\list.csv gam update user ~names archived on 
Result = account status become Archived.
But the license type doesn't change and the archive license type doesn't assign "Google Workspace Enterprise Standard - Archived User" 
I resolved first part of this issue by revoking licenses with command: gam csv d:\list.csv gam user ~names delete license 1010020026 
But I cannot find a command to assign license type "Google Workspace Enterprise Standard - Archived User" . 
Maybe you have such command ? 

середа, 26 жовтня 2022 р. о 15:48:46 UTC+3 Dominik Kugelmann пише:

Цей електронний лист та будь-які передані разом із ним файли є кoнфіденцiйною iнформацiєю, що належить ПриватБанку й призначена тільки для використання фізичною або юридичною особою, якій їх адресовано. Якщо ви не зазначений адресат, то не маєте права зберігати, поширювати або копіювати цей лист. У разі помилкового отримання просимо видалити його та повідомити автору.

This email and any files transmitted with it are confidential information belonging to PrivatBank and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressее, you are not authorised to further store, disseminate or copy it. In case of receiving this email by mistake we kindly ask to delete it and inform the author.




Ross Scroggs

unread,
Jul 24, 2023, 2:11:02 PM7/24/23
to google-ap...@googlegroups.com
See: https://github.com/taers232c/GAMADV-XTD3/wiki/Licenses#license-products-and-skus

Try this for users where you have already deleted the 1010020026 license
gam csv d:\list.csv gam user ~names add license 1010340004

Use this to update a user's license
gam csv d:\list.csv gam user ~names update license 1010340004 from 1010020026 

Ross



--

Андрій Кравченко

unread,
Jul 24, 2023, 2:31:04 PM7/24/23
to GAM for Google Workspace
Thank you )
Works fine.
Step 1:
gam csv d:\list.csv gam user ~names update license 1010340004 from 1010020026

and step 2:
gam csv d:\list.csv gam user ~names delete license 1010020026

понеділок, 24 липня 2023 р. о 21:11:02 UTC+3 Ross Scroggs пише:
Reply all
Reply to author
Forward
0 new messages