0

As I am using service account to share Google Drive documents, it would be nice to get in invitation email a company picture instead of the silhouette.

Is it possible to change somehow Google Service account picture?

I tried using the Google Admin SDK, but I get the following error:

404 OK
- SHOW HEADERS -
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "notFound",
    "message": "Resource Not Found: userKey"
   }
  ],
  "code": 404,
  "message": "Resource Not Found: userKey"
 }
}

I tried this through the API explorer: https://developers.google.com/admin-sdk/directory/v1/reference/users/photos/update

EDIT, the userKey is the email address of the account. In the service account case it is in the format:

account-name@project-name.iam.gserviceaccount.com
Maksim Luzik
  • 5,863
  • 4
  • 36
  • 57

1 Answers1

1

Get your service account to use delegation to impersonate and use a separate Google Apps account email address to do the document sharing. Set the photo in that Google Apps account.

Peter
  • 5,501
  • 2
  • 26
  • 42