【问题标题】:Is it possible to get the email addresses of the participants in an Azure Communication Services call?是否可以获取 Azure 通信服务调用参与者的电子邮件地址?
【发布时间】:2022-11-30 05:18:12
【问题描述】:

我在 Azure 通信服务示例应用程序中获取使用 util.js 参与团队会议的团队用户的 ID(=对象 ID),但是否可以获取电子邮件地址(=userPrincipalName)?

https://github.com/Azure-Samples/communication-services-web-calling-tutorial/blob/main/Project/src/Utils/Utils.js

        if (isCommunicationUserIdentifier(identifier)) {
            return identifier.communicationUserId;
        } else if (isPhoneNumberIdentifier(identifier)) {
            return identifier.phoneNumber;
        } else if (isMicrosoftTeamsUserIdentifier(identifier)) {
            return identifier.microsoftTeamsUserId;
        } else if (isUnknownIdentifier(identifier) && identifier.id === '8:echo123'){
            return 'Echo Bot';
        } else {
            return 'Unknown Identifier';
        }```

【问题讨论】:

  • 如果是同一个租户,你可以根据ID用Graph API获取,但是如果是不同的租户,我想你是获取不到的。
  • Teams 会议出席报告还显示外部用户的电子邮件地址。

标签: azure-communication-services


【解决方案1】:

电子邮件地址不包含在基础会议花名册中,因此无法通过 ACS SDK 获得。

正如您所指出的,您可以获得电子邮件/UPN vai Graph API,前提是您的应用已获得适当的 Graph API 同意。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多