从ms graph API的通话记录中从外部Microsoft团队用户获取信息

时间:2020-10-30 15:16:12

标签: php microsoft-graph-api

是否可以从外部团队致电参与者那里收到电子邮件?

https://graph.microsoft.com/beta/subscriptions

检索数据

我通过图表用户指定https://graph.microsoft.com/v1.0/users/{id}来解析我们的ID

我正在将通话记录写入我们的票务系统,并希望显示来自其他租户的参与者的电子邮件。

[participants] => Array
    (
        [0] => Array
            (
                [acsUser] => 
                [spoolUser] => 
                [phone] => 
                [guest] => 
                [encrypted] => 
                [onPremises] => 
                [acsApplicationInstance] => 
                [spoolApplicationInstance] => 
                [applicationInstance] => 
                [application] => 
                [device] => 
                [user] => Array
                    (
                        [id] => myId
                        [displayName] => Nico Bleiler
                        [tenantId] => myTenant
                    )

            )

        [1] => Array
            (
                [acsUser] => 
                [spoolUser] => 
                [phone] => 
                [guest] => 
                [encrypted] => 
                [onPremises] => 
                [acsApplicationInstance] => 
                [spoolApplicationInstance] => 
                [applicationInstance] => 
                [application] => 
                [device] => 
                [user] => Array
                    (
                        [id] => externalId
                        [displayName] => External User
                        [tenantId] => hisTenant
                    )

            )

    )

据我所知,我无法查询不在我的tenantId中的用户。 但是,有什么办法可以我至少找回他的电子邮件吗?

2 个答案:

答案 0 :(得分:0)

您可以使用列表参与者从给定呼叫中获取参与者列表。有人说,我不记得此时存在一种获取Microsoft团队用户电子邮件地址的方法。据说我记得uservoice1uservoice2的两个最接近的uservoice项目-继续进行投票,以便Microsoft可以考虑实施它。

答案 1 :(得分:0)

我相信我使用 userPrincipalName 属性来获取电子邮件。

GET /users/{id | userPrincipalName} 可以在这里找到: https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http