全局地址列表图API [英] Global Address List Graph API

查看:63
本文介绍了全局地址列表图API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Office 365加载项内使用Graph API,以从GAL中获取联系信息.以下两个查询都不返回GAL的任何联系人,尽管两个查询都返回一些信息.

I am trying to use the Graph API inside an Office 365 add-in to get contact information out of GAL. Neither of the following queries return any contacts from the GAL, although both return some information.

beta/me/contacts?$filter=displayName eq 'John Smith'

beta/me/people?$filter=displayName eq 'John Smith'

是否可以使用Graph API从GAL获取联系人?我觉得我没有给我的应用访问GAL的正确权限.

Is it possible to get contacts from the GAL using the Graph API? I having a feeling I am not giving my app the correct permission to access the GAL.

推荐答案

/me/contacts终结点从默认的Outlook Contacts文件夹返回联系人. /me/people终结点相似,但是尝试在联系人上提取信息以访问多个源.

The /me/contacts endpoint returns the contacts from your default Outlook Contacts folder. The /me/people endpoint is similar but attempts to pull information on contacts access multiple sources.

GAL代表来自您的组织(即Active Directory)的联系信息.要查看组织中其他用户的联系信息,请使用

The GAL represents contact information from your organization (i.e. Active Directory). To see the contact information for other users in your organization, you use the /users endpoint. To see organizational contacts (contacts added to the AD/GAL) you need to use the /contacts endpoint (note the lack of /me/ in the path).

这篇关于全局地址列表图API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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