Connection between n8n and Entra ID

Hi team,
I am working on setting up a workflow via n8n between a threat intel platform we use and Entra ID.
The workflow will ideally take the credentials identified as being leaked by the threat platform and further perform password reset on Entra ID.
I’ll do a check to see if password was reset in the last two weeks, if not, password will be automatically reset.

Leaked credential → check last password reset → perform password reset if last reset was > 2 weeks.

I am not able to set up the connectivity between n8n and Entra ID, can you please give me some hints? :slight_smile:
I found this doc Microsoft Entra ID (Azure Active Directory) and Segment: Automate Workflows with n8n but it is still not clear to me.

Gabriela

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hello @GabCo ,

Thanks for reaching out to us here in the community.

I have read your post and I will try to share some ideas with you. Hoping it will help.
So the example you shared is about integration of Entra ID and Segment which is not your case. However by looking at it, we can see that in order to talk with Microsoft Entra ID we will need to use the n8n HTTP node.

With that explained I will share a high level of steps that you would need to perfrom. Note that it may not be precise so you will need to course correct as you implement your use-case.

As per my understanding you would need to use OAuth 2.0 to connect with Entra ID and then use it to interact with it. So the high level steps you will need to do are:

  1. Register an app in Azure AD and get the required credentials.
  2. Configure an HTTP Request node in n8n to get the OAuth 2.0 token.
  3. Use the token to make authenticated API requests via another HTTP Request node. Here is where you will then check for last password reset, and based on the repsonse execute the reset or not. Note that you will need to research the Entra ID API to understand how to make these calls.

I hope this can get you going. If you have any further questions let us know here.

Flavio

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.