I want to create a user in UserInformationList using the email (retrieved from GET /users/{id | userPrincipalName}).

Nandi, Sulagna 0 Reputation points
2025-02-11T09:39:02.3566667+00:00

I need to create a new item in SharePoint using a Logic App. I'm using the HTTP connector and an authentication token obtained from a POST request to https://login.microsoftonline.com/tenant/oauth2/v2.0/token.

In my SharePoint list, some columns are of type Person or Group, which require a Lookup ID. I know that the following endpoint retrieves the Lookup ID from the User Information List for existing users:
GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$select=Fields&$filter=Fields/EMail eq '******@gmail.com'&$expand=Fields

However, for users who are not yet in the User Information List, I need a way to add them and retrieve their Lookup ID automatically. I did research and get the EnsureUser REST API, but there is no where about the authentications. How can I use the REST APIs in the HTTP Connector?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,341 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,014 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,181 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,276 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,630 questions
{count} votes

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.