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

如何使用Microsoft Graph API按创建用户筛选SharePoint列表项?

SharePoint列表按创建用户筛选的Graph API查询方案
  • 你之前使用的AuthorLookupId不是Graph API中识别的字段,正确的做法是通过创建者的导航属性Author来筛选,用Author/Id匹配用户ID。
  • 正确的筛选请求URL:
    https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$filter=Author/Id eq '{user-id}'
    
  • 补充说明:
    • 用户ID需用单引号包裹,因为它是字符串类型参数
    • 若需要返回创建者的详细信息,可附加$expand=Author参数,示例:
      https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$filter=Author/Id eq '{user-id}'&$expand=Author
      

内容的提问来源于stack exchange,提问作者BoondocꓘKiᗡ

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.07 07:35:23