为租户的所有用户创建Microsoft Graph订阅
我创建了一个应用程序(具有应用程序级别的权限),该应用程序会在用户接收电子邮件时创建用于接收通知的订阅。目前,我必须为租户的多个用户创建多个订阅。
有没有办法为租户的所有用户创建单个订阅,并在租户中的任何用户收到邮件时都会收到通知?
提前致谢。
I have created an application (with application level permissions) which creates subscription for receiving notifications when an user receives an email. Currently, I have to create multiple subscriptions for multiple users of an tenant.
Is there a way I can create a single subscription for all users of a tenant and receive notification whenever any user in the tenant receives a mail?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉,多个用户不支持单个订阅,您需要在租户中使用单个用户。

请查看文档以获取有关订阅的更多信息 - https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph=graph-Rest-1.0 和设置通知,请关注docs- https://learlen.microsoft.com/en-en-us/graph/graph/webhooks/webhooks/webhooks
Sorry , single subscription is not supported for multiple user, you need to use individual user in the tenant.

Please check out the docs for more info regarding subscription - https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph-rest-1.0 and to setup notification, please follow docs- https://learn.microsoft.com/en-us/graph/webhooks