是否要从GSuite oauth检索用户的电话号码? [英] Retrieving a user's phone number from GSuite oauth?

查看:84
本文介绍了是否要从GSuite oauth检索用户的电话号码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在GSuite上使用我们的员工用户对我们的管理系统进行身份验证,而我们的管理系统仅限于我们的托管域.

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

我们希望能够从其公司的Google帐户中获取员工的电话号码,因此我们不必构建单独的CRUD即可管理他们的电话号码.

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?

推荐答案

查看所有Google 范围. 电话号码有一个范围 https://www.googleapis.com/auth/user.phonenumbers.read查看您的电话号码

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

这篇关于是否要从GSuite oauth检索用户的电话号码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆