如何使用Microsoft Graph API按创建用户筛选SharePoint列表项?
- 你之前使用的
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ᗡ
相关产品推荐
相关产品推荐

