从 G Suite 获取具有姓名、phone 号码和组成员身份的用户列表
Get list of users with name, phone number and group memberships from G Suite
我查看了 G Suite 管理 API 并找到了这个函数:
获取https://www.googleapis.com/admin/directory/v1/users
我得到了所有用户的列表,但列表中没有用户有 phone 号码。如何在列表中包含用户的 phone 号码?
如果可能的话,我还想知道如何获取每个用户的组成员资格列表。
phone 号码 属性 在 用户资源 下,您可能已经错过了,因为它也位于响应下的 Users.list 中。
{
"kind": "admin#directory#users",
"etag": etag,
"users": [
users Resource
],
"nextPageToken": string
}
当您单击它时,它会导致完整的 User Resources,然后包含 phones
属性,包括其他内容。
"phones": [
{
"value": string,
"primary": boolean,
"type": string,
"customType": string
}
],
"phones": string
我查看了 G Suite 管理 API 并找到了这个函数:
获取https://www.googleapis.com/admin/directory/v1/users
我得到了所有用户的列表,但列表中没有用户有 phone 号码。如何在列表中包含用户的 phone 号码?
如果可能的话,我还想知道如何获取每个用户的组成员资格列表。
phone 号码 属性 在 用户资源 下,您可能已经错过了,因为它也位于响应下的 Users.list 中。
{
"kind": "admin#directory#users",
"etag": etag,
"users": [
users Resource
],
"nextPageToken": string
}
当您单击它时,它会导致完整的 User Resources,然后包含 phones
属性,包括其他内容。
"phones": [
{
"value": string,
"primary": boolean,
"type": string,
"customType": string
}
],
"phones": string