I have Display Name and Email ID of user, How to Update the Person or group field in list using Graph API

Harsha Vardhan Reddy 0 Reputation points
2023-12-08T10:00:56.31+00:00

I have Display Name and Email ID of user, How to Update the Person or group field in sharepoint list using Graph API without Lookup ID .

In general we will use

columnNameID: 13 (lookup id) to update field. But we have only email and Display Name

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,868 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,118 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,220 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 38,111 Reputation points Microsoft Vendor
    2023-12-11T03:04:03.1133333+00:00

    Hi @Harsha Vardhan Reddy,

    We could try to query the User Information list. You'll need to provide your user information list's guid and the Display name of the user. Please refer to the following sample

    https://graph.microsoft.com/v1.0/sites/root/lists/{user info list guid}/items?$select=Fields&$filter=Fields/Title eq 'User Display name'&$expand=Fields
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.