Help for creating n8n credentials for Microsoft Dynamics CRM (OAuth2)?

Hi there.
Just started to test n8n but struggling with the first action.
I’d like to understand which triggers are available and how to use from MS Dynamics CRM.

It’s not possible for me to add a new credential (Microsoft Dynamics OAuth2 API) and get the OAuth2 URL to register the connection in AD.
Don’t understand what I need first.
• To connect to the CRM domain (http://nutbaserdev.crm4.dynamics.com/) for getting the OAuth callback URl it seem’s the n8n client app need to have permissions in AD.
• To register the 8n8 client app in AD I need the OAuth callback URL to past it into the Redirect URI field.

Is there any easy hint?

Thanks - Markus
(Sorry – I’m not really a web specialist)

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:

Thanks. Hope this arethe correct info’s:

  • **n8n version:**Standard (registered yesterday)
  • **Database (default: SQLite):**Standard
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**Standard
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):**n8n cloud
  • **Operating system:**Windows 11 ???
1 Like

I have the same issue related to OAuth2 callback for Microsoft Dynamics 365 and “Insufficient parameters for OAuth2 callback”:

Received following query parameters: {“error”:“invalid_client”,“error_description”:“AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client’s application registration. Client app ID: aad843ca-42a7-4219-a3f9-91bcf621d795(n8n). Resource value from request: https://infoworksdev.crm.dynamics.com. Resource app ID: 00000007-0000-0000-c000-000000000000. List of valid resources from app registration: 00000003-0000-0000-c000-000000000000. Trace ID: 650bfe2f-2e7c-4388-a5bf-6beab3872c00 Correlation ID: 0517cf68-7c49-4891-9394-6b7e0144e420 Timestamp: 2025-01-29 21:17:03Z”,“state”:“eyJ0b2tlbiI6IlVhRVpCSm5vLUJYd1BUOHZ0YS03enJuM2VDZVlnb3JOcXRhNCIsImNpZCI6IlNtbGZPMjgxbGJ0b2FJQ24iLCJjcmVhdGVkQXQiOjE3MzgxODU0MTgxNTksImhvc3QiOiJoYXJ0bWFucGhpbDk5LmFwcC5uOG4uY2xvdWQvcmVzdCJ9”}

Running version [email protected]
n8n cloud
Windows 10.0.19045 Build 19045

Are you able to recreate the credentials as per our documentation?

Anyu more details you can share like your workflow and what you’re trying to achieve so the community can help?

Thanks!