Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Could not get the user given_name & family_name from https://www.googleapis.com/oauth2/v1/userinfo?

Could not get the user's given_name & family_name from https://www.googleapis.com/oauth2/v1/userinfo?
It works fine for a long time. But recently sometime  I could not get the user's given_name & family_name from it.

0 2 130
2 REPLIES 2

Hi @wade53

Welcome to Google Cloud Community!

What are the scopes you are using right now? Please try to add the following scopes for your API: googleapis.com/auth/userinfo.email and googleapis.com/auth/userinfo.profile. See People API scopes for your reference.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

I am getting user's given name from Google endpoint "https://www.googleapis.com/oauth2/v1/userinfo" for a long time. But recently, the given_name didn't return sometime. I am not sure why.