gam report users filters "accounts:last_login_time<2018-06-16T00:00:00.000Z" fields accounts:last_login_time
gam report users filters "accounts:last_login_time<2018-06-16T00:00:00.000Z, accounts:is_suspended==FALSE" fields accounts:last_login_time
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/850f00a9-5c32-4296-a50c-da7ddf645ee8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/0d59b2ab-89cf-427c-a31b-ccd048802791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
date -v -30d +'%Y-%m-%dT00:00:00.00Z'
gam report users filters 'accounts:last_login_time<$(date -v -30d +"%Y-%m-%dT00:00:00.00Z")' fields accounts:last_login_time
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/a1aa2660-a3b8-4844-afc1-6016c51c7feb%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAGPzzFsE%2BdkG5kWk6qUThU%2B8n934K9zUKvEPVeCh04BXXXtOhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Added querytime1 <Time> and querytime2 <Time> options to gam print cros/crosactivity/mobile to allow times,
usually relative, to be substituted into the query <QueryCrOS> and queries <QueryCrOSList> options.
The querytime1 <Time> value replaces the string #querytime1# in any queries.
The querytime2 <Time> value replaces the string #querytime2# in any queries.
For example, to print information about CrOS devices synced more than 30 days ago:
gam print cros query "sync:..#querytime1#" querytime1 -30d
For example, to print information about CrOS devices synced in the last 30 days:
gam print cros query "sync:#querytime1#.." querytime1 -30d
For example, to print information about CrOS devices synced between 45 days ago and 30 days ago:
gam print cros query "sync:#querytime1#..#querytime2#" querytime1 -45d querytime2 -30d
Ross
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAGPzzFto%3DexC4yyNY-x0LUqMG6VNz98r%3DK98cx4jA%2B44CUvQCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Kim,Coming soon:Added querytime1 <Time> and querytime2 <Time> options to gam print cros/crosactivity/mobile to allow times,
usually relative, to be substituted into the query <QueryCrOS> and queries <QueryCrOSList> options.
The querytime1 <Time> value replaces the string #querytime1# in any queries.
The querytime2 <Time> value replaces the string #querytime2# in any queries.
For example, to print information about CrOS devices synced more than 30 days ago:
gam print cros query "sync:..#querytime1#" querytime1 -30d
For example, to print information about CrOS devices synced in the last 30 days:
gam print cros query "sync:#querytime1#.." querytime1 -30d
For example, to print information about CrOS devices synced between 45 days ago and 30 days ago:
gam print cros query "sync:#querytime1#..#querytime2#" querytime1 -45d querytime2 -30d
Ross
On Wed, Sep 19, 2018 at 12:50 PM Kim Nilsson <there.is.no...@gmail.com> wrote:
Easily disable all devices with lastsync dates older than say six months, or a year.--Next step is, of course, to remove/deprovision devices older than that.We have too many devices listed as "active", but the hardware is no longer in the organisation. Most likely in a scrap yard somewhere.
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAGPzzFto%3DexC4yyNY-x0LUqMG6VNz98r%3DK98cx4jA%2B44CUvQCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Ross Scroggs
accounts:last_login_time<#filtertime1# accounts:last_login_time>#filtertime2# filtertime1 -30d filtertime2 -60d
--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/5EWegfqnQC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/4d3a0188-796b-4f97-9ea9-d03497ef1f8e%40googlegroups.com.
Hmm, why would you keep users who didn't login further back than 60 days, but remove users that didn't login between 30-60 dagar.
On Thu, 20 Sep 2018 at 11:01, Sam Woodhouse <sam.wo...@coopdigital.co.uk> wrote:
It is, but it's currently only limited (from what I can see) to passing a single variable through, so you couldn't (as an example) do:--
accounts:last_login_time<#filtertime1# accounts:last_login_time>#filtertime2# filtertime1 -30d filtertime2 -60dTo find accounts who haven't logged in in the last 30-60 days, to prompt a login. Similar to the steps you would like to take to de-activate and deprov devices, we are looking to do a similar thing for users.
On Thursday, 20 September 2018 09:42:59 UTC+1, +KimNilsson wrote:Sam, that's where we came from. :-)Look further up in the thread.
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/5EWegfqnQC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/548c6fb3-3187-4dd2-9772-14bbaa8a4eec%40googlegroups.com.