Change to whatis code

583 views
Skip to first unread message

k.melillo

unread,
Aug 28, 2018, 1:38:11 PM8/28/18
to GAM for G Suite
Not sure if this can be (or should be) changed...  

gam whatis <email_address>

This should print out 

<email address> is a user
<email address> is a group
<email address> is an alias to user <user email address>
<email address> is an alias to group <group email address>

The command does do this, sort of... it spits out what it is not, until it hits a match, then also gives you info on that match...  for me, this is TMI....  if I had the shorter form, I could script a response.

Bradley Stinson

unread,
Aug 28, 2018, 1:40:38 PM8/28/18
to google-ap...@googlegroups.com
It prints also prints the below if the entry doesn't exist.

ERROR: 404: Resource Not Found: userKey - userNotFound


--
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/9d68f615-f530-4fb6-b325-e7df3f22ab4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ross Scroggs

unread,
Aug 28, 2018, 1:49:03 PM8/28/18
to google-ap...@googlegroups.com

Bradley/Kevin,


Here is what Advanced GAM does:


$ gam whatis testuser1 noinfo

User: test...@rdschool.org

$ echo $?

20

$ gam whatis testuser1alias noinfo

User Alias: testuse...@rdschool.org

$ echo $?

21

$ gam whatis testgroup noinfo

Group: test...@rdschool.org

$ echo $?

22

$ gam whatis testgroupalias noinfo

Group Alias: testgro...@rdschool.org

$ echo $?

23

$ gam whatis nobody noinfo

Email Address: nob...@rdschool.org, Does not exist

$ echo $?

59


Ross



For more options, visit https://groups.google.com/d/optout.


--

✉ Kevin Melillo

unread,
Aug 28, 2018, 2:15:00 PM8/28/18
to google-ap...@googlegroups.com
Ross,

Thank you.  This is closer to what I need...  but NOINFO does not provide ENOUGH INFO!

I notice that when I choose an alias, it will say it is an alias, but not what the main user or group is.

Choose a Group email address
command: gam whatis gr...@domain.com noinfo
result: 

Choose an Alias to a Group email address
command: gam whatis gr...@alias.domain.com
result:

Choose an email account
command: gam whatis user...@domain.com
result:

Choose an alias to an email account
command: gam whatis user...@alias.domain.com
result:

While the noinfo does return a short response.  It does not give me the information needed, like if an alias, what is it on.  

noinfo really does mean noinfo, eh?  Is there a someinfo option?




Ross Scroggs

unread,
Aug 28, 2018, 2:59:24 PM8/28/18
to google-ap...@googlegroups.com
Kevin,

How about this?

$ gam whatis testuser1 noinfo

User: test...@rdschool.org

$ gam whatis testuser1alias noinfo

User Alias: testuse...@rdschool.org, User: test...@rdschool.org

$ gam whatis testgroup noinfo

Group: test...@rdschool.org

$ gam whatis testgroupalias noinfo

Group Alias: testgro...@rdschool.org, Group: test...@rdschool.org


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.

For more options, visit https://groups.google.com/d/optout.


--

✉ Kevin Melillo

unread,
Aug 28, 2018, 3:06:29 PM8/28/18
to google-ap...@googlegroups.com
Very nice!  Is this already there?  Did I process it wrong?


For more options, visit https://groups.google.com/d/optout.


--
Kevin Melillo
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854

Phone:732-465-6609 | Mobile: 732-609-4331

Ross Scroggs

unread,
Aug 28, 2018, 3:10:29 PM8/28/18
to google-ap...@googlegroups.com

Ross Scroggs

unread,
Aug 28, 2018, 3:38:19 PM8/28/18
to google-ap...@googlegroups.com
Kevin,

Available now in Advanced Gam 4.60.16

Ross
--

✉ Kevin Melillo

unread,
Aug 28, 2018, 3:46:55 PM8/28/18
to google-ap...@googlegroups.com
Yep. That did the trick.  Thank you.


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages