Minimum GAM version for sendas command

469 views
Skip to first unread message

Matthew Sauvage

unread,
Sep 27, 2016, 10:34:52 AM9/27/16
to Google Apps Manager
Hi. I'm trying to set sendas addresses for some accounts but this doesn't work. No error message is shown just the following:

"GAM 3.45 - http://git.io/gam
Python 2.7.9 64-bit final
google-api-python-client 1.4.0
Windows-7-6.1.7601-SP1 AMD64
Path: c:\GAM\

Usage: gam [OPTIONS]...

GAM. Retrieve or set Google Apps domain,
user, group and alias settings. Exhaustive list of commands

Examples:
gam info domain
gam create user jsmith firstname John lastname Smith password secretpass
gam update user jsmith suspended on
gam.exe update group announcements add member jsmith"

Does this mean that this version does not support the sendas command?

If this is the case, how simple is it to upgrade to the newest version? I am in the middle of making many changes in our domain and do not want to have problems setting up GAM with a new version, but being able to use the sendas command would be very useful.
Thanks,
Matthew Sauvage

Ross Scroggs

unread,
Sep 27, 2016, 10:41:03 AM9/27/16
to google-ap...@googlegroups.com
Matthew,

It would be helpful to see the command you are entering. Change sensitive information but not format of command.

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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/f0d72ee5-9a0f-4f56-b08a-a55a453acf12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Sauvage

unread,
Sep 27, 2016, 10:48:13 AM9/27/16
to Google Apps Manager
Here it is:

c:\GAM>gam user "user e-mail" sendas "existing group email (user is owner in group)" name "nice name"
replyto "existing group email (same as sendas email"

I don't use quotes "" in the command. Everything you see in quotes here has been substituted for sensitive data.


I have tried different permutations, leaving out some options but all give the same result and no sendas is set up.

Thanks,

Matthew
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

Matthew Sauvage

unread,
Sep 27, 2016, 10:53:42 AM9/27/16
to Google Apps Manager
By the way, forgot to mention that retrieving sendas info works fine.


El martes, 27 de septiembre de 2016, 15:41:03 (UTC+1), Ross Scroggs escribió:
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

Ross Scroggs

unread,
Sep 27, 2016, 11:15:56 AM9/27/16
to google-ap...@googlegroups.com
Matthew,

gam user "user e-mail" sendas "existing group email (user is owner in group)" name "nice name" replyto "existing group email (same as sendas email"

Omit name: gam user "user e-mail" sendas "existing group email (user is owner in group)" "nice name" replyto "existing group email (same as sendas email"

3.45 is old, you might consider upgrading to:

If you upgrade follow these instructions as the new versions uses an updated API that requires additional scopes.

You must update the list of authorized scopes for your Gam OAuth2 Client and Service Account after installing for the first time or upgrading from a version earlier than 3.7.
- Go to the section labelled Authorizing the API scopes for use with GAM in the Admin Console
- Log on to the admin console as in step 2.ii.
- In the list of Authorized API clients, locate your Gam OAuth2 Client, copy the Client ID and then remove the entry.
- Paste the Client ID into the Client name box as in step 2.iii.a, then do steps 2.iii.b thru 2.iii.d.
You'll notice that the API Scopes - OAuth2 list has additional entries, these are what is required in Gam 3.73.
- Skip down to step 3.i.
- In the list of Authorized API clients, locate your Gam Service Account, copy the Client ID and then remove the entry.
- Paste the Client ID into the Client name box as in step 3.i.b, then do steps 3.i.c thru 3.i.e.
You'll notice that the API Scopes - Service Account list has additional entries, these are what is required in Gam 3.73.

Ross
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.

Matthew Sauvage

unread,
Sep 27, 2016, 11:22:20 AM9/27/16
to Google Apps Manager
Thanks very much Ross. Now working fine.  My bad, reading the syntax wrongly (when you're in a rush ....)

I have been wanting to update for ages but always run out of time. I'll follow the instructions to update as soon as I have some free days when using GAM is not crucial. As you can see I depend heavily on it so thank you very much for that.

Matthew

Matthew Sauvage

unread,
Sep 30, 2016, 4:27:47 AM9/30/16
to Google Apps Manager
Ross, I got this working by resolving the syntax error, so that's fine but when I try to use the signature parameter it does not work (no error message shown). I'm using:

c:\GAM>gam user "email" sendas "existing group email" "G Suite" replyto "same existing group email" signature "signature text".


Also, I may be mistaken, but the syntax on the wiki seems to be incorrect. For adding a sendas it gives the syntax as: gam user "mail" add sendas "mail" but if you use "add" it doesn't work. Also, this makes the "update" syntax confusing. How will it know the difference between updating and adding?

thanks,

Matthew
Reply all
Reply to author
Forward
0 new messages