简体   繁体   English

如何从 Microsoft Graph API 资源管理器中区分用户邮箱和共享 Malbox

[英]How to differentiate between user mailbox and shared malbox from Microsoft Graph API explorer

How to differentiate between user mailbox and shared mailbox from Microsoft Graph API explorer.如何从 Microsoft Graph API 资源管理器中区分用户邮箱共享邮箱 I want to build app which should work with only shared mailboxes.我想构建仅适用于共享邮箱的应用程序。 Use of powershell is not possible due to limitation of basic authentication and we are not yet ready for modern authentication.由于基本身份验证的限制,无法使用 powershell,我们还没有准备好进行现代身份验证。

There is finally a property available in Graph Beta for the MailboxSettings object to check this: Graph Beta 中终于有一个属性可用于MailboxSettings对象来检查这一点:

Properties特性

Property财产 Type类型 Description描述
userPurpose用户目的 userPurpose用户目的 The purpose of the mailbox.邮箱的目的。 Used to differentiate a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online.用于区分单个用户的邮箱与 Exchange Online 中的共享邮箱和设备邮箱。 Read only.只读。

Source: https://docs.microsoft.com/en-us/graph/api/resources/mailboxsettings?view=graph-rest-beta#properties来源: https : //docs.microsoft.com/en-us/graph/api/resources/mailboxsettings?view=graph-rest-beta#properties

There seems not to be a way to differentiate shared mailboxes and normal user mailboxes with Microsoft Graph API explorer.似乎没有办法使用 Microsoft Graph API 资源管理器来区分共享邮箱和普通用户邮箱。

You could assign a keyword (like 'shared') as the givenName when creating shared mailboxes, or using the beta "findroomlists" outlook api endpoint .您可以在创建共享邮箱或使用测试版“findroomlists”outlook api 端点时将关键字(如“共享”)指定为 givenName。

See a similar post here .请参阅此处的类似帖子。

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

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