--
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/c25432e1-bdfd-47d9-a14e-73318a5a69ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Bryan,
Here is the query documentation for users: https://developers.google.com/admin-sdk/directory/v1/guides/search-usersThere is no ability to query for lastLoginTime.You'll have to filter the list yourself.
On Sep 27, 2018, at 7:21 PM, Bryan Guidroz <bryang...@tpsdonline.org> wrote:
This works perfectly for devices:I'm looking to do something similar for users.If an active user in a specific OU has a last login 90 days ago or more, I want to disable their account.I was hoping the command below would work, but it doesn't../gam print users query "orgUnitPath='/Staff/Site 001' isSuspended=false lastlogintime:..#querytime1#" querytime1 -90dCommand: ./gam print users query "orgUnitPath='/Staff/001 Staff' isSuspended=false lastlogintime:..#querytime1#" >>>querytime1<<< -90dERROR: Invalid argumentSuggestions with gamadv-x?--
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 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/d91d1692-65e0-4b4c-a726-31d8237f2fe9%40googlegroups.com.
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/35ac47f9-a894-4450-a262-a4c59397c574%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/f0e52799-eae6-464e-a021-9e706b1d916d%40googlegroups.com.