DEV Community

Discussion on: Create a SharePoint list item with a people lookup field using Microsoft Graph SDK

Collapse
 
rferreiraperez profile image
Rubén Ferreira • Edited

I can't retrieve "User Information List" from the site, neither using the root site nor the current site.

I can see the list using the Browser but I can't retrieve it through the code. I'm using this URLs:

https://{organization}.sharepoint.com/_catalogs/users/detail.aspx
https://{organization}.sharepoint.com/_catalogs/users/simple.aspx

Any thoughts?

Collapse
 
baywet profile image
Vincent Biret • Edited

you can query https://graph.microsoft.com/v1.0/sites/{site-id}/lists?$select=system,name,id iterate through the results, and find the list with the name "users" (unfortunately filter doesn't seem to be supported on that endpoint for this field).