0

I am building google apps for marketplace. My app support only few Gsuite account type. So, While somebody signup to my app. I wanted to alert them their google account is valid for app or not.

To do this I require some API from google which check Gsuite account type.

Please let me know if you found any such API.

sandeepsure
  • 1,113
  • 1
  • 10
  • 17

1 Answers1

0

AFAIK, there's no adhoc Google API for this, but you can try this one:

Using API Explorer plus.people.get make an authorize request. Enter the userId parameter. Use 'me' if it's your personal email.

The response will contain a certain domain if they belong to one:

"domain": "NAME_OF_DOMAIN"

If domain doesn't show, they don't belong in any domain - default user.

ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56