An API that connects multiple Microsoft services, enabling data access and automation across platforms
Author, Editor, and person-type fields on SharePoint list items are exposed as lookup IDs in the fields facet. To get the actual user details, call Microsoft Graph on the corresponding user object using that ID.
- Get the list item (already done):
GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}?expand=fields
This returns values like:
"AuthorLookupId": "15",
"EditorLookupId": "577",
"PersonLookupId": "15"
- Use the lookup ID to get the user from Microsoft Graph:
GET https://graph.microsoft.com/v1.0/users/{user-id}
For example, for AuthorLookupId:
GET https://graph.microsoft.com/v1.0/users/15
This returns the user resource, including properties such as displayName, mail, and userPrincipalName.
Repeat for EditorLookupId, PersonLookupId, and any other person fields. If needed, use $select to limit returned properties, for example:
GET https://graph.microsoft.com/v1.0/users/15?$select=id,displayName,mail
References: