List of users forwarding

2,202 views
Skip to first unread message

Anna Mantica

unread,
Feb 2, 2017, 8:10:09 PM2/2/17
to GAM for G Suite
I was able to get GAM to show a list of users that are forwarding in a command prompt. I cannot get the list to print. When I run gam all users print forward I get an error ERROR: 400: Mail service not enabled - serviceNotAvailable

Also, I don't think the list is accurate. There are at least 5 people that are marked forwarding false that I know for a fact forward their email. Is there another command I can run to verify this information?

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

Ross Scroggs

unread,
Feb 2, 2017, 8:22:30 PM2/2/17
to google-ap...@googlegroups.com
Anna,

Do: gam version
What command worked?
What command failed?

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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/b3f12e3b-45db-4bc2-80a2-c49c034df357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Anna Mantica

unread,
Feb 6, 2017, 12:45:06 PM2/6/17
to GAM for G Suite
Newest version of GAM, 4.11. I used gam all users print forward and it fails with a 400 error.

If I use gam all users show forward that works but I've got 600+ accounts and I really need a csv file with the info in it.



On Thursday, February 2, 2017 at 8:22:30 PM UTC-5, Ross Scroggs wrote:
Anna,

Do: gam version
What command worked?
What command failed?

Ross
On Thu, Feb 2, 2017 at 5:06 PM, Anna Mantica <anna.m...@verani.com> wrote:
I was able to get GAM to show a list of users that are forwarding in a command prompt. I cannot get the list to print. When I run gam all users print forward I get an error ERROR: 400: Mail service not enabled - serviceNotAvailable

Also, I don't think the list is accurate. There are at least 5 people that are marked forwarding false that I know for a fact forward their email. Is there another command I can run to verify this information?

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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



--

Anna Mantica

unread,
Feb 6, 2017, 12:46:11 PM2/6/17
to GAM for G Suite
Python 2.7.12 64-bit final
google-api-python-client 1.6.1
Windows-7-6.1.7601-SP1 AMD64
Path: C:\GAM

Jay Lee

unread,
Feb 6, 2017, 12:46:59 PM2/6/17
to GAM for G Suite
Run:

gam user <email> check serviceaccount

where <email> is your admin email address and follow the instructions provided.

Jay

On Mon, Feb 6, 2017 at 12:45 PM Anna Mantica <anna.m...@verani.com> wrote:
Newest version of GAM, 4.11. I used gam all users print forward and it fails with a 400 error.

If I use gam all users show forward that works but I've got 600+ accounts and I really need a csv file with the info in it.



On Thursday, February 2, 2017 at 8:22:30 PM UTC-5, Ross Scroggs wrote:
Anna,

Do: gam version
What command worked?
What command failed?

Ross
On Thu, Feb 2, 2017 at 5:06 PM, Anna Mantica <anna.m...@verani.com> wrote:
I was able to get GAM to show a list of users that are forwarding in a command prompt. I cannot get the list to print. When I run gam all users print forward I get an error ERROR: 400: Mail service not enabled - serviceNotAvailable

Also, I don't think the list is accurate. There are at least 5 people that are marked forwarding false that I know for a fact forward their email. Is there another command I can run to verify this information?

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

--
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.
Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Anna Mantica

unread,
Feb 6, 2017, 12:55:22 PM2/6/17
to GAM for G Suite
All scopes passed.

C:\GAM>gam user {email} check serviceaccount
User: {email}
 Scope: https://mail.google.com/                                     PASS
 Scope: https://www.googleapis.com/auth/activity                     PASS
 Scope: https://www.googleapis.com/auth/calendar                     PASS
 Scope: https://www.googleapis.com/auth/drive                        PASS
 Scope: https://www.googleapis.com/auth/plus.me                      PASS

All scopes passed!

On Monday, February 6, 2017 at 12:46:59 PM UTC-5, Jay Lee wrote:
Run:

gam user <email> check serviceaccount

where <email> is your admin email address and follow the instructions provided.

Jay

On Mon, Feb 6, 2017 at 12:45 PM Anna Mantica <anna.m...@verani.com> wrote:
Newest version of GAM, 4.11. I used gam all users print forward and it fails with a 400 error.

If I use gam all users show forward that works but I've got 600+ accounts and I really need a csv file with the info in it.



On Thursday, February 2, 2017 at 8:22:30 PM UTC-5, Ross Scroggs wrote:
Anna,

Do: gam version
What command worked?
What command failed?

Ross
On Thu, Feb 2, 2017 at 5:06 PM, Anna Mantica <anna.m...@verani.com> wrote:
I was able to get GAM to show a list of users that are forwarding in a command prompt. I cannot get the list to print. When I run gam all users print forward I get an error ERROR: 400: Mail service not enabled - serviceNotAvailable

Also, I don't think the list is accurate. There are at least 5 people that are marked forwarding false that I know for a fact forward their email. Is there another command I can run to verify this information?

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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



--

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Jay Lee

unread,
Feb 6, 2017, 1:01:43 PM2/6/17
to GAM for G Suite
The error means some users don't have Gmail turned on (which is probably expected for some users in your domain). GAM should be displaying the error for those users but continuing on to other users and eventually outputting the CSV. Is that what you are seeing?

Can you show us exactly what command you are running and what the output is?

If a significant portion of your users have Gmail service off it'd be faster to only list forwards for users that have it turned on. You can use something like:

gam ou_and_children /GmailEnabled print forward

where /GmailEnabled is the OU that has Gmail service enabled. If there are multiple root OUs with it enabled you may need to run the command for each OU.

Jay

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.



--

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

--
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.
Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Anna Mantica

unread,
Feb 6, 2017, 1:16:13 PM2/6/17
to GAM for G Suite
None of my users have mail turned off. That's weird. I've got 2 OUs and I just want the main OU to spit out a list of who is forwarding and to where. There used to be a simple report containing this information. I'm not sure why it needs to be so difficult now.
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.



--

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Jay Lee

unread,
Feb 6, 2017, 1:20:58 PM2/6/17
to GAM for G Suite
Run:

gam print users ou ismailboxsetup todrive

this will create a spreadsheet with all your users, their OU and if they have a Gmail mailbox created. Do you see anything in common for users that show False for isMailboxSetup?

Jay

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.



--

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

--
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.
Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Anna Mantica

unread,
Feb 6, 2017, 1:23:33 PM2/6/17
to GAM for G Suite
I see 14 that say false. Those are accounts I should delete.I don't know how they got there.
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.



--

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Anna Mantica

unread,
Feb 6, 2017, 1:41:35 PM2/6/17
to GAM for G Suite
OK those accounts were deleted. Still can't get a list. I'm not stupid. I swear.

Jay Lee

unread,
Feb 6, 2017, 1:45:27 PM2/6/17
to GAM for G Suite
You need to tell us what you're running and what output you're getting.

Jay

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.



--

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Anna Mantica

unread,
Feb 6, 2017, 1:47:59 PM2/6/17
to google-ap...@googlegroups.com
C:\GAM>gam all users print forward todrive
Getting all users in G Suite account (may take some time on a large account)...
Got 622 users...
done getting 622 users.

And then it just sits  for 15 mins and nothing happens.


photo Anna Mantica
Chief Information Officer
Berkshire Hathaway HomeServices Verani Realty 

For technical support please contact he...@verani.com

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.



--

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

--
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-apps-manager@googlegroups.com.
--

Jay

--
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/gnbIEUYgYfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

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

Anna Mantica

unread,
Feb 6, 2017, 1:49:14 PM2/6/17
to GAM for G Suite

Jay Lee

unread,
Feb 6, 2017, 1:56:04 PM2/6/17
to GAM for G Suite
Retrieving the forwarding address for users requires one API operation per-user. It's likely to take more than 15 minutes.

Jay

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Anna Mantica

unread,
Feb 6, 2017, 1:57:25 PM2/6/17
to GAM for G Suite
OK I will wait it out in hopes that I get a list. The first list you had me get opened right away.


On Monday, February 6, 2017 at 1:56:04 PM UTC-5, Jay Lee wrote:
Retrieving the forwarding address for users requires one API operation per-user. It's likely to take more than 15 minutes.

Jay

On Mon, Feb 6, 2017 at 1:49 PM Anna Mantica <anna.m...@verani.com> wrote:
C:\GAM>gam all users print forward todrive
Getting all users in G Suite account (may take some time on a large account)...
Got 622 users...
done getting 622 users.

And then it just sits  for 15 mins and nothing happens.

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay

Anna Mantica

unread,
Feb 6, 2017, 2:08:27 PM2/6/17
to google-ap...@googlegroups.com
Sheet finally opened. Thanks so much!


photo Anna Mantica
Chief Information Officer
Berkshire Hathaway HomeServices Verani Realty 

For technical support please contact he...@verani.com

On Mon, Feb 6, 2017 at 1:57 PM, Anna Mantica <anna.m...@verani.com> wrote:
OK I will wait it out in hopes that I get a list. The first list you had me get opened right away.

On Monday, February 6, 2017 at 1:56:04 PM UTC-5, Jay Lee wrote:
Retrieving the forwarding address for users requires one API operation per-user. It's likely to take more than 15 minutes.

Jay

On Mon, Feb 6, 2017 at 1:49 PM Anna Mantica <anna.m...@verani.com> wrote:
C:\GAM>gam all users print forward todrive
Getting all users in G Suite account (may take some time on a large account)...
Got 622 users...
done getting 622 users.

And then it just sits  for 15 mins and nothing happens.

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

--
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+unsubscribe...@googlegroups.com.
--

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

--
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/gnbIEUYgYfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

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

Anna Mantica

unread,
Feb 7, 2017, 2:34:29 PM2/7/17
to GAM for G Suite
Does it still hold true that people forwarding via a filter will not be displayed on this list?



On Monday, February 6, 2017 at 2:08:27 PM UTC-5, Anna Mantica wrote:
Sheet finally opened. Thanks so much!


photo 
Anna Mantica
Chief Information Officer
Berkshire Hathaway HomeServices Verani Realty 
For technical support please contact he...@verani.com
On Mon, Feb 6, 2017 at 1:57 PM, Anna Mantica <anna.m...@verani.com> wrote:
OK I will wait it out in hopes that I get a list. The first list you had me get opened right away.

On Monday, February 6, 2017 at 1:56:04 PM UTC-5, Jay Lee wrote:
Retrieving the forwarding address for users requires one API operation per-user. It's likely to take more than 15 minutes.

Jay

On Mon, Feb 6, 2017 at 1:49 PM Anna Mantica <anna.m...@verani.com> wrote:
C:\GAM>gam all users print forward todrive
Getting all users in G Suite account (may take some time on a large account)...
Got 622 users...
done getting 622 users.

And then it just sits  for 15 mins and nothing happens.

Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

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

Jay


Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

--
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/gnbIEUYgYfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/4c66b237-1543-4f02-b2d2-1f4ced6da846%40googlegroups.com.

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

+KimNilsson

unread,
Feb 10, 2017, 4:39:21 AM2/10/17
to GAM for G Suite
Sounds logical, since filtering is completely separate from forwarding.

Anna Mantica

unread,
Feb 10, 2017, 9:58:32 AM2/10/17
to GAM for G Suite
Yes except that I'm looking specifically for filtering rules that are forwarding emails to another account.

Ross Scroggs

unread,
Feb 10, 2017, 11:33:44 AM2/10/17
to google-ap...@googlegroups.com
Anna,

This script should show you what you want. The comments describe deleting filters that forward outside of your domain, that step is optional.

Ross

!/usr/bin/env python                                                                                                                                                                   

"""                                                                                                                                                                                     

# Purpose: For Gmail User(s), list/delete all filters that forward email outside of a list of specified domains                                                                         

# Note: This script can use basic GAM: https://github.com/jay0lee/GAM or advanced GAM: https://github.com/taers232c/GAMADV-X                                                            

# Usage:                                                                                                                                                                                

# 1: Get filters, if you don't want all users, replace all users with your user selection in the command below                                                                          

#  $ Example, basic GAM: gam all users print filters > filters.csv                                                                                                                      

#  $ Example, advanced GAM: gam config auto_batch_min 1 redirect csv filters.csv multiprocess all users print filters                                                                   

# 2: From that list of filters, output a CSV file that lists the filters that forward email outside of the specified domains.                                                           

#  $ python GetNonDomainFilterForwards.py filters.csv outsidefilters.csv                                                                                                                

# 3: Inspect outsidefilters.csv, verify that it makes sense and then proceed                                                                                                            

# 4: Delete the filters                                                                                                                                                                 

#  $ gam csv outsidefilters.csv gam user "~User" delete filter "~id"                                                                                                                    

"""


import csv, re, sys

forward_domain = re.compile(r"^forward .*@(.*)$")

# Substitute your domain(s) in the list below, e.g., domainList = ['domain.com',] domainList = ['domain1.com', 'domain2.com',]                                                          

domainList = []

inputFileName = sys.argv[1]

outputFileName = sys.argv[2]


with open(outputFileName, 'wb') as outputFile:

  with open(inputFileName, 'rb') as inputFile:

    filters = csv.DictReader(inputFile)

    outsidefilters = csv.DictWriter(outputFile, filters.fieldnames)

    outsidefilters.writeheader()

    for row in filters:

      v = row.get('forward', '')

      if v:

        mg = forward_domain.match(v)

        if mg and mg.group(1) not in domainList:

          outsidefilters.writerow(row)



Emails sent or received shall neither constitute acceptance of proposed and/or preliminary offers conducted via email nor shall create a binding contract in the absence of a fully executed written contract.

The contents of this email and any attachments is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately at 800-392-2377.

--
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-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

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



--

Anna Mantica

unread,
Feb 10, 2017, 11:36:18 AM2/10/17
to GAM for G Suite
Thank you very much. I really appreciate it.
To post to this group, send email to google-ap...@googlegroups.com.



--

+KimNilsson

unread,
Feb 13, 2017, 8:39:36 AM2/13/17
to GAM for G Suite
Why the extra comma at the end, and the space in the domain list? (Asking because I don't know python required syntax.)

+KimNilsson

unread,
Feb 13, 2017, 9:12:27 AM2/13/17
to GAM for G Suite
More reminders that OSX isn't Linux. What did I forget?

$ find_accounts_forwarding_outside_our_domain 
/Users/MyUser/bin/find_accounts_forwarding_outside_our_domain: line 1: !/usr/bin/env: No such file or directory
/Users/MyUser/bin/find_accounts_forwarding_outside_our_domain: line 14:                                                                                                                                                                                      
# Purpose: For Gmail User(s), list/delete all filters that forward email outside of a list of specified domains                                                                         
# Note: This script can use basic GAM: https://github.com/jay0lee/GAM or advanced GAM: https://github.com/taers232c/GAMADV-X                                                            
# Usage:                                                                                                                                                                                
# 1: Get filters, if you don't want all users, replace all users with your user selection in the command below                                                                          
#  $ Example, basic GAM: gam all users print filters > filters.csv                                                                                                                      
#  $ Example, advanced GAM: gam config auto_batch_min 1 redirect csv filters.csv multiprocess all users print filters                                                                   
# 2: From that list of filters, output a CSV file that lists the filters that forward email outside of the specified domains.                                                           
#  $ python GetNonDomainFilterForwards.py filters.csv outsidefilters.csv                                                                                                                
# 3: Inspect outsidefilters.csv, verify that it makes sense and then proceed                                                                                                            
# 4: Delete the filters                                                                                                                                                                 
#  $ gam csv outsidefilters.csv gam user ~User delete filter ~id                                                                                                                    
: File name too long
/Users/MyUser/bin/find_accounts_forwarding_outside_our_domain: line 16: import: command not found
/Users/MyUser/bin/find_accounts_forwarding_outside_our_domain: line 17: syntax error near unexpected token `('
/Users/MyUser/bin/find_accounts_forwarding_outside_our_domain: line 17: `forward_domain = re.compile(r"^forward .*@(.*)$")'

+KimNilsson

unread,
Feb 13, 2017, 9:16:28 AM2/13/17
to GAM for G Suite
hmm, same error on console.cloud.google.com which is a Ubuntu shell.
First error line even seems untrue.

: line 1: !/usr/bin/env: No such file or directory

$ ls -l /usr/bin/env
-rwxr-xr-x 1 root root 31240 Mar 14  2015 /usr/bin/env

Kevin Melillo

unread,
Feb 13, 2017, 9:19:01 AM2/13/17
to google-ap...@googlegroups.com
Doesn't that line require a #?

The SHEBANG is 
#!/

no?

--
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-apps-manager@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
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854

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

Kim Nilsson

unread,
Feb 13, 2017, 9:38:37 AM2/13/17
to Google Apps Manager
Thanks, Kevin.

That gave me another error message.

$ find_forwards 
Traceback (most recent call last):
  File "/home/MyUser/bin/find_forwards", line 20, in <module>
    inputFileName = sys.argv[1]
IndexError: list index out of range

Kevin Melillo

unread,
Feb 13, 2017, 9:41:25 AM2/13/17
to google-ap...@googlegroups.com
That error leads me to believe it is looking for another variable from the command line...  not sure what the script is calling, but it needs the variable from the command line, which has not been typed in... 

--
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-apps-manager@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,
Feb 13, 2017, 9:41:58 AM2/13/17
to google-ap...@googlegroups.com
The file name looks like it needs to be entered along with the command.

On Mon, Feb 13, 2017 at 9:41 AM, Kevin Melillo <k.me...@ieee.org> wrote:
That error leads me to believe it is looking for another variable from the command line...  not sure what the script is calling, but it needs the variable from the command line, which has not been typed in... 
On Mon, Feb 13, 2017 at 9:38 AM, Kim Nilsson <there.is.no.substitute@gmail.com> wrote:
Thanks, Kevin.

That gave me another error message.

$ find_forwards 
Traceback (most recent call last):
  File "/home/MyUser/bin/find_forwards", line 20, in <module>
    inputFileName = sys.argv[1]
IndexError: list index out of range

--
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+unsubscribe...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
--
Kevin Melillo
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854

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

Ross Scroggs

unread,
Feb 13, 2017, 9:44:22 AM2/13/17
to google-ap...@googlegroups.com
Kim/Kevin/Anna,

Yes the initial # got dropped in the copy/paste of the script, my apologies.
The script expects two file names on the command line: $ python GetNonDomainFilterForwards.py filters.csv outsidefilters.csv 
filters.csv is the output from the gam command that prints the filters, it is read by the script
outsidefilters.csv is the output from the script

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

Kevin Melillo

unread,
Feb 13, 2017, 9:47:59 AM2/13/17
to google-ap...@googlegroups.com
If it is possible, include the scripts you are using, so we can assist with troubleshooting.  I only see a copy\paste of a portion of it here.

On Mon, Feb 13, 2017 at 9:44 AM, Ross Scroggs <ross.s...@gmail.com> wrote:
Kim/Kevin/Anna,

Yes the initial # got dropped in the copy/paste of the script, my apologies.
The script expects two file names on the command line: $ python GetNonDomainFilterForwards.py filters.csv outsidefilters.csv 
filters.csv is the output from the gam command that prints the filters, it is read by the script
outsidefilters.csv is the output from the script

On Feb 13, 2017, at 6:38 AM, Kim Nilsson <there.is.no.substitute@gmail.com> wrote:

Thanks, Kevin.

That gave me another error message.

$ find_forwards 
Traceback (most recent call last):
  File "/home/MyUser/bin/find_forwards", line 20, in <module>
    inputFileName = sys.argv[1]
IndexError: list index out of range

--
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-apps-manager@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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

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

+KimNilsson

unread,
Feb 13, 2017, 10:22:44 AM2/13/17
to GAM for G Suite
lol, so you mean I must read instructions, Ross! Maaaaaan!

Kevin, it's all included in Ross' post earlier in the thread.
Reply all
Reply to author
Forward
0 new messages