【问题标题】:Microsoft Graph API BETA - Reports returning userPrincipalName encrypted/hashedMicrosoft Graph API BETA - 报告返回 userPrincipalName 加密/散列
【发布时间】:2018-12-04 04:31:01
【问题描述】:

调用报告端点之一时,例如https://graph.microsoft.com/beta/reports/getTeamsUserActivityUserDetail(period='D7')?$format=application/json

对于我们的租户,返回的 userPrincipalName 看起来类似于 91AFD71ACEEFDD92B5B0A041F0E2FDA6,但我在我们的测试租户中看到了预期的电子邮件。

我没有在文档中看到任何有关所需额外权限或其他潜在安全设置的内容。调用报告时如何获取实际的 UPN?

【问题讨论】:

    标签: microsoft-graph-api


    【解决方案1】:

    对于将来可能遇到这种情况的其他人:

    Office 365 管理员必须禁用设置->报告下的“显示匿名标识符”设置。

    MS Support Document

    【讨论】:

    • 真是帮了大忙
    【解决方案2】:

    根据您的描述,我已经使用端点https://graph.microsoft.com/beta/reports/getTeamsUserActivityUserDetail(period='D7')?$format=application/json 进行了尝试,但是我得到了如下所示的响应

    { "@odata.type": "#microsoft.graph.teamsUserActivityUserDetail", "reportRefreshDate": "2018-11-27", "userPrincipalName": "XX@domain.onmicrosoft.com", "lastActivityDate": null, "isDeleted": false, "deletedDate": null, "assignedProducts": [ "OFFICE 365 ENTERPRISE E3 DEVELOPER" ], "teamChatMessageCount": 0, "privateChatMessageCount": 0, "callCount": 0, "meetingCount": 0, "hasOtherAction": false, "reportPeriod": "7" },

    我已阅读this document,如果您使用 Azure AD 设置启用备用登录 ID,它可能会收到您发布的响应。

    【讨论】:

    • 感谢您提供的信息,但不确定是否有帮助。如果我运行 https://graph.microsoft.com/beta/users 我得到预期的 UPN,只有报告没有正确显示 upn
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多