accounts.disabled_time trigger in Query

28 views
Skip to first unread message

Ryan Hale

unread,
Mar 18, 2026, 1:57:52 PM (2 days ago) Mar 18
to GAM for Google Workspace
I am attempting to do a query to find all users who have been suspended for more then 30 days.  This has worked in the past but am having trouble now running it for some reason.  Anyone else do something similar?

gam print users query "orgUnitPath='/XXX/XXX' isSuspended=True,accounts.disabled_time:date<-30d"

Ross Scroggs

unread,
Mar 18, 2026, 4:01:11 PM (2 days ago) Mar 18
to google-ap...@googlegroups.com
That command can't work send me a private Meet/Zoom invitation and we'll sort things out.

Ross
----
Ross Scroggs



On Mar 18, 2026, at 10:57 AM, 'Ryan Hale' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

I am attempting to do a query to find all users who have been suspended for more then 30 days.  This has worked in the past but am having trouble now running it for some reason.  Anyone else do something similar?

gam print users query "orgUnitPath='/XXX/XXX' isSuspended=True,accounts.disabled_time:date<-30d"

--
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 visit https://groups.google.com/d/msgid/google-apps-manager/effa2b8b-c95a-4ce2-9dfe-75553c09a914n%40googlegroups.com.

Ross Scroggs

unread,
Mar 18, 2026, 4:14:39 PM (2 days ago) Mar 18
to google-ap...@googlegroups.com
Try:

gam config csv_output_row_filter "accounts.disabled_time:date<-30d" report users ou "/xxx/xxx" service accounts parameters accounts:disabled,accounts:disabled_reason 


Ross

----
Ross Scroggs


On Mar 18, 2026, at 10:57 AM, 'Ryan Hale' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

I am attempting to do a query to find all users who have been suspended for more then 30 days.  This has worked in the past but am having trouble now running it for some reason.  Anyone else do something similar?

gam print users query "orgUnitPath='/XXX/XXX' isSuspended=True,accounts.disabled_time:date<-30d"

Ryan Hale

unread,
Mar 19, 2026, 10:24:15 AM (yesterday) Mar 19
to google-ap...@googlegroups.com
This worked PERFECT!  Thank you so much!





Reply all
Reply to author
Forward
0 new messages