-->

Retrieving a user's phone number from GSuite o

2019-08-25 02:48发布

问题:

We're using our staff users on GSuite to authenticate with our management system which we are restricting to our hosted domain.

We'd like to be able to grab our staff's phone number from their company Google account so we don't have to build separate CRUD to allow us to manage their phone number.

Users are authenticated with the 'email' & 'profile' scopes.

Is it possible to retrieve the user's phone number in addition to their name, email, image?

回答1:

See all the Google scopes. There is a scope for Phone# https://www.googleapis.com/auth/user.phonenumbers.read View your phone numbers