Setting a forwarding address via new New-GGmailForwardingAddress / Get-GGmailForwardingAddress

35 views
Skip to first unread message

rishi...@tapad.com

unread,
Mar 31, 2017, 2:20:13 PM3/31/17
to gshell-discuss
Has anyone had success setting up forwarding addresses via the new Gmail API commands?

I've setup a service account with domain-wide delegation and added the required API scopes as authorized for the service account but I'm getting an ERROR 403: Insufficient Permissions error when I use New-GGmailForwardingAddress.

Doing a Get-GGmailForwardingAddress works but I don't see any data that I could parse.

Ideas anyone?

Spencer Varney

unread,
Mar 31, 2017, 3:17:20 PM3/31/17
to rishi...@tapad.com, gshell-discuss
Working backwards in what you said - If I start with this:
$F = Get-GGmailForwardingAddress -UserId me -All -TargetUserEmail targetUser

I am able to get a response that contains a member called ForwardingAddresses that can be looked at like this:
$F.ForwardingAddresses

As far as creating a new forwarding address, looks like that's a bug and I'm going to need to do a little more work to figure out exactly how I need to solve this. Sorry about that! Can you open a ticket for this in the issues section?

Thanks,

Spencer

--
You received this message because you are subscribed to the Google Groups "gshell-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gshell-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rishi...@tapad.com

unread,
Mar 31, 2017, 4:34:37 PM3/31/17
to gshell-discuss, rishi...@tapad.com
Done!

Done!

Spencer Varney

unread,
Mar 31, 2017, 4:41:32 PM3/31/17
to rishi...@tapad.com, gshell-discuss
Thanks, I'll try to work on this as soon as I can and provide an update, though it could be some time before I find that time. Fingers crossed.

rishi...@tapad.com

unread,
Sep 13, 2017, 2:50:15 PM9/13/17
to gshell-discuss
Hey,

Was this ever fixed? I know Settings API is going to be now deprecated in November so trying to get ready to use the Gmail API instead.

Rishi

Spencer Varney

unread,
Sep 25, 2017, 3:00:04 PM9/25/17
to rishi...@tapad.com, gshell-discuss
Hey Rishi,

Check out this dll file that I tested out for issue 58 to solve a similar issue. It's not an 'official' release, but it did solve that. Other steps involved were making sure the API Access settings in the CPanel for the service account mirrored what gShell was scoped to use, and to make sure that the service account had DWD set up: 


I apologize for lack of updates otherwise - I'm currently working on a more sustainable way to provide updates and new content beyond writing all the code out by hand. I hope to have good news on that soon!

Let me know if that helps!

Regards,

Spencer

PS Use at your own risk i guess haha, back up the old .dll file first, but it doesn't change anything else beyond the fix to that issue
Reply all
Reply to author
Forward
0 new messages