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.
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:
Register an app in Azure AD and get the required credentials.
Configure an HTTP Request node in n8n to get the OAuth 2.0 token.
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.