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

使用Graph API获取sensitivityLabel列表失败,请求解决方案

解决Graph API获取敏感度标签列表的错误问题

错误原因分析

你尝试的两个URL均存在路径或版本错误:

  1. https://graph.microsoft.com/v1.0/security/informationProtection/sensitivityLabels:该接口仅在beta版本提供,v1.0版本无此资源路径,因此返回Resource not found for the segment 'informationProtection'。
  2. https://graph.microsoft.com/beta/users/me/security/informationProtection/sensitivityLabels:security/informationProtection并非users/me的子资源,层级错误导致返回未知错误。

正确解决方案

1. 使用正确的Beta版本URL

获取敏感度标签列表的有效请求URL为:

GET https://graph.microsoft.com/beta/security/informationProtection/sensitivityLabels

在Graph Explorer顶部切换到beta版本后使用此URL即可。

2. 配置必要权限

需在Graph Explorer中添加并同意以下权限之一:

  • 委托权限:InformationProtectionPolicy.Read
  • 应用权限:InformationProtectionPolicy.Read.All
    (注:应用权限需管理员同意,委托权限可直接在Graph Explorer中完成授权)

3. 额外检查项

  • 确认操作账号拥有访问敏感度标签的权限(如全局管理员、合规管理员等角色)
  • 租户已启用Microsoft Purview信息保护或Azure信息保护服务

内容的提问来源于stack exchange,提问作者John Park

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.20 21:12:41