I’m trying to add Microsoft credentials to n8n. I watched several tutorials where people set it up through Azure — in their interface they have fields to enter Client ID, Client Secret, Tenant ID, etc.
In my case, I don’t see those fields at all. I only see a big “Connect my account” button.
I would prefer to connect it using my own Client ID and Client Secret instead of the automatic account connection.
What should I do to enable this option?
I already tried creating a credential manually with:
-
Authentication: Generic Credential Type
-
Generic Auth Type: OAuth2 API
-
Connection Settings:
-
Grant Type: Client Credentials
-
Access Token URL:
https://login.microsoftonline.com/{{ $vars.TenantID }}/oauth2/v2.0/token
-
Client ID:
{{ $vars.ClientID}}
(my app registration Client ID / App ID) -
Client Secret: (my app registration secret token)
-
Scope:
api://{{ $vars.ClientID}}/.default
-
Authentication: Header
-
But I don’t know how to actually connect and use this credential in my n8n nodes afterwards.
Does anyone know how to properly set this up?