Add members to group who Never logged in

56 views
Skip to first unread message

Björn (adv. admin) Sundberg

unread,
Nov 29, 2022, 6:59:37 AM11/29/22
to GAM for Google Workspace
Hi,

How can I add (or rather update) members to a group that never logged in? 
Using GAMADV-XTD3 6.28.09

Would something like this work:
gam update group neverloggedin add member filter accounts.last_login_time:regex:Never 

br
Björn

Ross Scroggs

unread,
Nov 29, 2022, 9:50:31 AM11/29/22
to google-ap...@googlegroups.com
Bjorn,

gam config csv_output_row_filter "lastLoginTime:regex:Never" print users fields primaryemail,lastlogintime | gam update group neverloggedin sync members csvfile -:primaryEmail

Ross
----
Ross Scroggs



--
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/0a7eb5a1-028a-4fa4-aa4d-6d64004522bdn%40googlegroups.com.

Björn (adv. admin) Sundberg

unread,
Nov 30, 2022, 6:42:48 AM11/30/22
to GAM for Google Workspace
Thanks Ross - working perfect!

James Hatz

unread,
Nov 30, 2022, 8:33:57 AM11/30/22
to GAM for Google Workspace
When I try that command I get: 
ERROR: Invalid argument: Expected <FileName(:FieldName)+>

Ross Scroggs

unread,
Nov 30, 2022, 9:41:08 AM11/30/22
to google-ap...@googlegroups.com
James,

Show the actual command and error message.
What is: gam version

Ross
----
Ross Scroggs


James Hatz

unread,
Nov 30, 2022, 9:45:02 AM11/30/22
to GAM for Google Workspace
gam config csv_output_row_filter "lastLoginTime:regex:Never" print users fields primaryemail,lastlogintime | gam update group neverloggedin sync members csvfile -:primaryEmail
H:\>gam config csv_output_row_filter "lastLoginTime:regex:Never" print users fields primaryemail,lastlogintime | gam update group neverloggedin sync members csvfile -:primaryEmail
Command: gam update group neverloggedin sync members csvfile >>>-:primaryEmail<<<


ERROR: Invalid argument: Expected <FileName(:FieldName)+>
Help: Syntax in file C:\GAMADV-XTD3\GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki
Getting all Users, may take some time on a large Google Workspace Account...
Got 1126 Users: xx...@rushcity.k12.mn.us -xx...@rushcity.k12.mn.us
Traceback (most recent call last):
  File "__main__.py", line 40, in <module>
  File "__main__.py", line 28, in main
  File "__init__.py", line 66045, in ProcessGAMCommand
  File "__init__.py", line 65926, in closeSTDFilesIfNotMultiprocessing
  File "__init__.py", line 65922, in closeSTDFile
OSError: [Errno 22] Invalid argument
[13788] Failed to execute script '__main__' due to unhandled exception!

H:\>
GAMADV-XTD3 6.29.07 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <ross.s...@gmail.com>
Python 3.10.8 64-bit final
Windows 10 10.0.19045 SP0 Multiprocessor Free AMD64
Path: C:\GAMADV-XTD3
Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, customer_id: C033bd3lt, domain: rushcity.k12.mn.us

Ross Scroggs

unread,
Nov 30, 2022, 10:58:42 AM11/30/22
to google-ap...@googlegroups.com
James,

Send me a Meet/Zoom invitation.

Ross



--

Björn (adv. admin) Sundberg

unread,
Jan 10, 2023, 7:32:03 AMJan 10
to GAM for Google Workspace
Hi Ross,

Would it be possible to also define a orgunit update, a orgunit like "/students" but with a wildcard ("/students*" maybe) so all sub ou's will be included? 

br
Björn




tisdag 29 november 2022 kl. 15:50:31 UTC+1 skrev Ross Scroggs:

Ross Scroggs

unread,
Jan 10, 2023, 8:58:16 AMJan 10
to google-ap...@googlegroups.com
ou_and_children "/Students"


Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages