Search code examples
oauthgoogle-apigoogle-oauthgoogle-api-clientgoogle-developers-console

How to change the google API "service account" name/email address


I am using the Google API to create a spreadsheet on google drive.

  • My app has a link that says 'Download To Google Doc'
  • The app sends a file to google docs and shares it with the user.
  • The user can then see it in google docs.

This all works good.

The problem is the identity of the service account sharing the doc. It is a generated id. I want it to be branded to my app.

Is this possible? -

It is this random number. I want it to be branded. Is this possible?


Solution

  • You can't change the service account email address, nor can you supply a real world user name to it. The service account email address is created by Google in the Google Developer console.

    enter image description here

    The only way to change the email address would be to delete it and create a new one but again you would be stuck with the one Google Created. I suspect that the client id and email address are a pair used for identification of your application. Similar to client id and client secret, but I cant verify that.

    I do see your point it would be nice if we could.