0

I don't where to ask questions at https://developers.google.com/identity/ so I am asking here.

I've been tinkering with using Google as an authentication provider. I've setup my app with:

  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET

Though now I'm interested in assigning admin permissions in my test code to other Google users identified by email address. How do I know what the ID is of say example@gmail.com so I can add that person to an admin list?

I don't want the user to login first to figure out their 21 digit ID!

hendry
  • 9,725
  • 18
  • 81
  • 139

1 Answers1

1

There is no way for you to search on a google email address and get any information about that user including their Google user id. This would have a large number of security ramifications in my opinion.

You need to have the user login then you can use the user info endpoint to get back the information you need.

André Tzermias
  • 1,172
  • 10
  • 13
Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449