Coder Social home page Coder Social logo

Comments (1)

Buenno avatar Buenno commented on June 16, 2024

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.

from psgsuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.