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,544 questions
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
Microsoft Security | Microsoft Graph
{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.