Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-GSGmailSignature ... Update-GSGmailSignature #378

Open
eugen257 opened this issue Sep 21, 2022 · 1 comment
Open

Get-GSGmailSignature ... Update-GSGmailSignature #378

eugen257 opened this issue Sep 21, 2022 · 1 comment

Comments

@eugen257
Copy link

eugen257 commented Sep 21, 2022

Hello, i need help.
I need to change the signature of more than a hundred accounts.
With this in mind, I have a few questions:

  • Is it possible to read/change the name of the signature?
  • Delete existing signatures?
  • Why is it not possible to view existing signatures and the ability to select the required one?
    image
  • How to assign the ' ReplyToAddress' parameter?
    image

Thanks in advance

@Buenno
Copy link

Buenno commented Aug 31, 2023

The Gmail API is a little quirky in that you can only create signatures by assigning them to a sendas address, it's not like the UI where you can create a signature on it's own or assign fancy names to the signatures. If you are trying to update the default signature for every user in your domain then that's easy.

You can use Get-GSGmailSendAsAlias or its alias Get-GSGmailSignature to get a users aliases which will include the signatures. It won't show you the name of the signature as seen in the UI, this is because the Gmail API doesn't return such data.

You can update/change the signature with Update-GSGmailSignature. For changing the default signature the command will look something like Update-GSGmailSignature -User username -SendAsEmail [email protected] -Signature "html sig goes here".

You can remove signatures for an alias via Update-GSGmailSignature, just set the signature property to an empty space. e.g. Update-GSGmailSignature -User username -SendAsEmail [email protected] -Signature " ". This isn't required if you plan on updating the signature for the same sendas address.

Why is it not possible to view existing signatures and the ability to select the required one?
I'm not sure what you mean by this. You can view all signatures and update/remove whichever one you need.

How to assign the ' ReplyToAddress' parameter?
You can't via the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants