简体   繁体   English

Microsoft Graph 统一联系人列表

[英]Microsoft Graph Unified Contacts List

Is it possible to create Exchange contacts list which will be shared across the whole organisation using Graph API?是否可以使用 Graph API 创建将在整个组织中共享的 Exchange 联系人列表? These contacts are not the part of the organisation.这些联系人不是组织的一部分。

I know we can add contact to user's contact list, however was not able to find a way to have a contact which will be shared across the whole organisation.我知道我们可以将联系人添加到用户的联系人列表中,但是无法找到一种在整个组织中共享联系人的方法。

POST /me/contacts
POST /users/{id | userPrincipalName}/contacts
POST /me/contactFolders/{contactFolderId}/contacts
POST /users/{id | userPrincipalName}/contactFolders/{contactFolderId}/contacts

I am aware that contacts are shared if the contact is within organisation and if they are in Active Directory Domain Services (AD DS).我知道,如果联系人在组织内并且在 Active Directory 域服务 (AD DS) 中,则会共享联系人。 However these contacts are outside of the org.但是,这些联系人在组织之外。

Mail Enabled directory contacts (which are stored in AD) are available using the organizational contacts endpoint https://docs.microsoft.com/en-us/graph/api/orgcontact-list?view=graph-rest-1.0&tabs=http .使用组织联系人端点https://docs.microsoft.com/en-us/graph/api/orgcontact-list?view=graph-rest-1.0&tabs=http可以使用启用邮件的目录联系人(存储在 AD 中) . However they don't allow you to create Org contacts in the Graph there's a uservoice request for this https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests/suggestions/38083912-make-it-possible-to-create-organizational-contacts (but not looking good at getting this changed)但是,他们不允许您在图表中创建组织联系人,对此https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests/suggestions/38083912-make-it-有用户语音请求可能创建组织联系人(但看起来不太擅长改变)

So the Exchange cmldets are still the only real way of doing this programatically https://docs.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps因此 Exchange cmdets 仍然是以编程方式执行此操作的唯一真正方法https://docs.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps

eg例如

New-MailContact -Name "Chris Ashton" -ExternalEmailAddress "chris@tailspintoys.com"

While this does not answer my question directly, one of the solutions would be to have a user which will serve as a master containing all contacts.虽然这不能直接回答我的问题,但解决方案之一是让用户充当包含所有联系人的主站。

This way contacts list would be accessible using following Graph call这样可以使用以下 Graph 调用访问联系人列表

GET /users/{id | userPrincipalName}/contacts

The downside of this approach is that whenever new contact is added to personal list it would need to be added to this list as well.这种方法的缺点是,每当新联系人添加到个人列表时,它也需要添加到此列表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM