cbernard73
cbernard73

Reputation: 159

Google People API does not return an emailAddress for people/me

I'm using the Google API Console Tool tool, and when I do the query

resourceName: people/me  
personFields: emailAddresses  

I get the following response:

{
  "resourceName": "people/102381120202845324999",
  "etag": "%EgUBCT43LhoMAQIDBAUGBwgJCgsMIgw0eHhmblFCa0Qybz0="
}  

As you can see, no email address is included. This only happens with one of my gmail accounts. Using another account I would get a response like:

{
  "resourceName": "people/104150119553351608999",
  "etag": "%EgUBCT43LhoMAQIDBAUGBwgJCgsMIgxIc2JBaWZXWldGQT0=",
  "emailAddresses": [
    {
      "metadata": {
        "primary": true,
        "verified": true,
        "source": {
        "type": "DOMAIN_PROFILE",
         "id": "104150119553351608710"
        }
     },
     "value": "[email protected]"
    } 
}

Any idea what the cause could be?

Upvotes: 3

Views: 801

Answers (1)

Andrew Page
Andrew Page

Reputation: 129

I think this is related to G Suite.

Upvotes: 0

Related Questions