You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Microsoft Graph API返回未安装自定义应用ID问题反馈

Microsoft Graph Beta接口查询用户个人已安装应用返回异常

问题详情

  • 执行操作:以租户管理员身份通过Graph Explorer调用Microsoft Graph Beta接口,查询用户03bc2854-da85-49d4-a6cb-0f372170e3a4的个人已安装Teams应用
  • 请求命令:
GET https://graph.microsoft.com/beta/users/03bc2854-da85-49d4-a6cb-0f372170e3a4/teamwork/installedApps?$expand=teamsApp,teamsAppDefinition&$filter=teamsApp/externalId eq '068661a0-624f-4fcd-a4e8-70dd5738ec99'
  • 异常情况:目标用户并未安装externalId为068661a0-624f-4fcd-a4e8-70dd5738ec99的自定义应用(该应用仅被其他用户安装),但接口返回了该应用的安装记录,与已安装该应用的用户返回结果一致,预期应返回0条数据。

返回结果

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('03bc2854-da85-49d4-a6cb-0f372170e3a4')/teamwork/installedApps(teamsApp(),teamsAppDefinition())",
  "@odata.count": 1,
  "@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET users('<03bc2854-da85-49d4-a6cb-0f372170e3a4>')/teamwork/installedApps?$select=consentedPermissionSet,grantedResourceSpecificApplicationPermissions",
  "value": [
    {
      "id": "MDNiYzI4NTQtZGE4NS00OWQ0LWE2Y2ItMGYzNzIxNzBlM2E0IyNmMWMxYWU1Ny1mMmU3LTQyNWItOWQ4MS1mMDA5ZmJhMTVlNTU=",
      "consentedPermissionSet": null,
      "teamsApp": {
        "id": "f1c1ae57-f2e7-425b-9d81-f009fba15e55",
        "externalId": "068661a0-624f-4fcd-a4e8-70dd5738ec99",
        "displayName": "Activity feed broadcast",
        "distributionMethod": "organization"
      },
      "teamsAppDefinition": {
        "id": "ZjFjMWFlNTctZjJlNy00MjViLTlkODEtZjAwOWZiYTE1ZTU1IyMxLjAuMCMjUHVibGlzaGVk",
        "teamsAppId": "f1c1ae57-f2e7-425b-9d81-f009fba15e55",
        "azureADAppId": "068661a0-624f-4fcd-a4e8-70dd5738ec99",
        "displayName": "Activity feed broadcast",
        "version": "1.0.0",
        "requiredResourceSpecificApplicationPermissions": [],
        "publishingState": "published",
        "shortdescription": "Activity feed notification to notify any message to the organisation",
        "description": "Activity feed notification to notify any message to all members of the organisation.",
        "lastModifiedDateTime": null,
        "allowedInstallationScopes": "personal",
        "serializedInternalDefinition": null,
        "createdBy": null,
        "authorization": {
          "requiredPermissionSet": {
            "resourceSpecificPermissions": []
          }
        }
      }
    }
  ]
}

内容的提问来源于stack exchange,提问作者Vladimir B

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.02 18:33:12