--
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/4553865b-6e7a-4399-b636-823bcfcefb82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAC6ikXGO9_q%2Bi0DO3h%3DFg3LhViCEbBFrhh40xp0jeuYnT3AJpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
I have to agree with Bradley on this one. If you are searching for an email that exists, then you would want to check groups, and aliases as well../gam whatis <email_address>It will tell you if it is in use as a group or user or alias, and if it is an alias, what user\group it is assigned to.
On Mon, Aug 27, 2018 at 7:16 PM 'Bradley Stinson' via GAM for G Suite <google-ap...@googlegroups.com> wrote:
gam whatis user...@yourdomain.com
On Mon, Aug 27, 2018 at 3:59 PM Raj Veeravalli <raj.vee...@jmss.vic.edu.au> wrote:
--Hi Brett,I too use "gam info user xyz"If the address is not valid, the response to the command has the formUser: xyz at domain.name, Does not existIn DOS %errorlevel% is non-zero when a command executes with errors.
The PowerShell equivalent is $? or $LASTEXITCODEI am also interested in a better approach if it's available.Raj
On Tuesday, 28 August 2018 06:39:45 UTC+10, Brett Purcell wrote:
Is there any good way in GAM currently to check whether or not an email address exists? I'm using $userExists = (gam info user $emailAddress userview) in PowerShell currently and it works, but it spits out errors any time it runs into a user that doesn't exist and I'd really like to make things a bit cleaner if possible though I'm not seeing any other way to check for it.
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/4553865b-6e7a-4399-b636-823bcfcefb82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/CAC6ikXGO9_q%2Bi0DO3h%3DFg3LhViCEbBFrhh40xp0jeuYnT3AJpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ross updated his gam to make the whatis feature a little bit better.
--
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/6c88249b-20db-4bee-976c-011b712773be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.