Change License

251 views
Skip to first unread message

Anil Pal

unread,
Jun 8, 2022, 6:10:08 PM6/8/22
to GAM for Google Workspace
I am trying to change user license from Google-Apps-Unlimited (G Suite Business) to Workspace Enterprise Plus

tried gam csv C:\GAM\Purge\Suspended.csv gam update licence 1010020020 from Google-Apps-Unlimited and did not work.

Please help

Ross Scroggs

unread,
Jun 8, 2022, 6:20:41 PM6/8/22
to google-ap...@googlegroups.com
Anil,

What are the headers in Suspended.csv? Let's assume this it's useremail, it can be anything, put actual value in command below.
gam csv C:\GAM\Purge\Suspended.csv gam user "~useremail" update licence 1010020020 from Google-Apps-Unlimited

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/8494b74d-d762-4cfe-9f64-a8768a626a0dn%40googlegroups.com.


--

Anil Pal

unread,
Jun 8, 2022, 6:47:48 PM6/8/22
to google-ap...@googlegroups.com
Thanks Ross that worked..

I wanted to also use the same CSV file to remove all the groups that email is in, would you know how to do that?


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/XiqaifzwWwI/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/CAJkvRS8wKxOUjn_7CT-Qbq-JFXaCWSzAe53CPjwv0cKew%2BSMDQ%40mail.gmail.com.


--

4101 Winfield Road | Warrenville, IL 60555


Anil Pal

Messaging Engineer

O: (630) 821-2830 M: (312) 848-4141

anil...@lsccom.com


Ross Scroggs

unread,
Jun 8, 2022, 6:56:36 PM6/8/22
to google-ap...@googlegroups.com
Anil,

With Advanced GAM you would say:
gam csv C:\GAM\Purge\Suspended.csv gam user "~useremail" delete groups

There is no equivalent Standard GAM command, let me figure out the easiest way to do it.

Ross




--

Ross Scroggs

unread,
Jun 8, 2022, 7:48:13 PM6/8/22
to google-ap...@googlegroups.com
Anil,

With Standard GAM you'll have to write a script that reads the Suspended.csv file
For each user in the file you'll do these two commands, let's assume a script variable $user that has the user email address in it.

gam print groups member $user > ./usergroups.csv

gam csv ./usergroups.csv gam update group "~Email" delete member user $user


Ross

--

Anil Pal

unread,
Jul 5, 2022, 11:45:38 AM7/5/22
to google-ap...@googlegroups.com
Hi Rosss,
Is there a way to do a GAM command to reset "Sign In Cookies"  under the user's profile?


Iain Macleod

unread,
Jul 5, 2022, 2:52:39 PM7/5/22
to GAM for Google Workspace
Hello Anil,

I just suspended them and then reactivate them right away that signs them out of every device. 

gam update user [User] suspended on
gam update user [User]  suspended off

Anil Pal

unread,
Jul 5, 2022, 3:01:41 PM7/5/22
to google-ap...@googlegroups.com
Ross,
Thank for the information, I have noticed, since I have implemented when a user mailbox is delegated and the user is in active in AD (we use SSO) the user is able to use this phone for email access even though he is terminated in AD.  So when I terminate a user we disable his AD account and I have to also either delete the devices he is managing in his profile or reset his sign in cookies.




Notice to recipient: This e-mail is only meant for the intended recipient of the transmission, and may be a confidential communication or a communication privileged by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of this e-mail is strictly prohibited. Please notify us immediately of the error by return e-mail and please delete this message from your system. Thank you in advance for your cooperation.

--
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/XiqaifzwWwI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

Kim Nilsson

unread,
Jul 9, 2022, 7:57:48 AM7/9/22
to GAM for Google Workspace

Anil Pal

unread,
Jul 12, 2022, 5:53:26 PM7/12/22
to google-ap...@googlegroups.com
ROss,
Is there a way to get accounts created after a certain date in GAM?

Ross Scroggs

unread,
Jul 12, 2022, 6:01:01 PM7/12/22
to google-ap...@googlegroups.com
Anil,

gam config csv_output_row_filter "creationTime:date>=2022-03-01"  print users fields primaryemail,creationtime


Change the date as required, add additional fields as desired.


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.


--

Anil Pal

unread,
Jul 12, 2022, 6:15:07 PM7/12/22
to google-ap...@googlegroups.com
Ross,
Thanks for the input, unfortunately i got this error.

ERROR: config is not a valid argument for "gam"

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/XiqaifzwWwI/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/CAJkvRS8KRdtFoWeZEe8%2B3Vs5P-HR8N_1tERhYWgydoB0BAimuQ%40mail.gmail.com.

Ross Scroggs

unread,
Jul 12, 2022, 7:40:27 PM7/12/22
to google-ap...@googlegroups.com
Anil,

I gave you the Advanced GAM solution; here is the Standard GAM solution.

export GAM_CSV_ROW_FILTER="creationTime:date>=2022-03-01" Linux/MacOS

set GAM_CSV_ROW_FILTER="creationTime:date>=2022-03-01" Windows

gam print users fields primaryemail,creationtime


Ross




--
Reply all
Reply to author
Forward
0 new messages