# Salesforce connection issue with n8n (OAuth Error)

**URL:** <https://community.n8n.io/t/salesforce-connection-issue-with-n8n-oauth-error/193442>\
**Category:** Questions\
**Created:** [September 24, 2025, 9:51am UTC](https://community.n8n.io/t/salesforce-connection-issue-with-n8n-oauth-error/193442 "2025-09-24T09:51:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_BERIARD](https://avatars.discourse-cdn.com/v4/letter/v/9dc877/32.png) [@Victor\_BERIARD](https://community.n8n.io/u/Victor_BERIARD)\
**Post date:** [September 24, 2025, 9:51am UTC](https://community.n8n.io/t/salesforce-connection-issue-with-n8n-oauth-error/193442/1 "2025-09-24T09:51:24Z")

</div>

Hi everyone,

I’m having trouble connecting Salesforce to n8n Cloud. I can’t link my account and always end up with an OAuth error.

## Describe the problem/error/question

When I try to connect Salesforce via n8n, I get the following message:

OAUTH\_APPROVAL\_ERROR\_GENERIC : An unexpected error has occurred during authentication. Please try again.

Here’s what I’ve already tried:

- Logging in via our SSO → failed

- Logging in with our domain name → failed

- Tried both **Production** and **Sandbox** → same issue

- Signed out/in from Salesforce before connecting via n8n → no change

- Private browsing and without VPN → no change

- Removed and recreated the Salesforce credentials in n8n → still fails

### My workflow (simplified)

- **Schedule Trigger** → **Salesforce (Get Many Accounts)**  
The Salesforce node fails right at the connection step.

## What is the error message (if any)?

OAuth Error Salesforce: _“We can’t authorize you because of an OAuth error.”_

 ![Capture d’écran 2025-09-24 à 11.49.32](https://europe1.discourse-cdn.com/n8n/original/3X/5/7/57ec4546e49072624946d3f30cdc41fb8a93c77e.png)

## Please share your workflow

```auto
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

```

## Share the output returned by the last node

{  
“nodes”: [  
{  
“parameters”: {  
“rule”: {  
“interval”: [  
{  
“field”: “weeks”,  
“triggerAtDay”: [  
1  
],  
“triggerAtHour”: 8  
}  
]  
}  
},  
“type”: “n8n-nodes-base.scheduleTrigger”,  
“typeVersion”: 1.2,  
“position”: [  
0,  
0  
],  
“id”: “cc3b362d-1093-4f32-b6b0-bfb9d95924bd”,  
“name”: “Schedule Trigger”  
},  
{  
“parameters”: {  
“resource”: “attachment”,  
“operation”: “getAll”,  
“options”: {}  
},  
“type”: “n8n-nodes-base.salesforce”,  
“typeVersion”: 1,  
“position”: [  
208,  
0  
],  
“id”: “abb5efbe-3f6c-442b-9eaa-2c3d4997e377”,  
“name”: “Get many attachments”  
}  
],  
“connections”: {  
“Schedule Trigger”: {  
“main”: [  
[  
{  
“node”: “Get many attachments”,  
“type”: “main”,  
“index”: 0  
}  
]  
]  
}  
},  
“pinData”: {},  
“meta”: {  
“templateCredsSetupCompleted”: true,  
“instanceId”: “0b09999ee7b7c5f7278a008cad1e20e99323fc06f1f71b05f830e23fcef57303”  
}  
}

## Information on your n8n setup

- **n8n version:** n8n Cloud
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** n8n cloud
- **Operating system:** Mac

---

<div class="post-metadata">

**Author:** ![Victor\_BERIARD](https://avatars.discourse-cdn.com/v4/letter/v/9dc877/32.png) [@Victor\_BERIARD](https://community.n8n.io/u/Victor_BERIARD)\
**Post date:** [September 24, 2025, 12:02pm UTC](https://community.n8n.io/t/salesforce-connection-issue-with-n8n-oauth-error/193442/3 "2025-09-24T12:02:57Z")

</div>

Thanks a lot for your detailed reply @Bringasher🙏

Just to clarify on my side:

- I don’t have a **Connected App** configured since I’m using **n8n Cloud**.

- In Salesforce, both **Login Hours** and **Login IP Ranges** are completely empty, so there are no restrictions applied.

Given that, do you think the issue could still be related to scopes or callback URL mismatch?

Thanks again for the support!

---

<div class="post-metadata">

**Author:** ![Victor\_BERIARD](https://avatars.discourse-cdn.com/v4/letter/v/9dc877/32.png) [@Victor\_BERIARD](https://community.n8n.io/u/Victor_BERIARD)\
**Post date:** [September 25, 2025, 7:03am UTC](https://community.n8n.io/t/salesforce-connection-issue-with-n8n-oauth-error/193442/5 "2025-09-25T07:03:43Z")

</div>

Thanks for the follow-up @Bringasher🙏

Just to clarify: I’m on **n** 8n Cloud, using the built-in Salesforce OAuth2 credential.  
On Cloud, I don’t have any fields for Client ID / Client Secret – those are handled by the preconfigured Connected App from n8n, so I can’t check or edit them.

When I go through the OAuth process from this credential, n8n Cloud doesn’t show me any Redirect URI either (the “Details” tab is empty). The connection just fails with the same `OAUTH_APPROVAL_ERROR_GENERIC` error.

---

<div class="post-metadata">

**Author:** ![Victor\_BERIARD](https://avatars.discourse-cdn.com/v4/letter/v/9dc877/32.png) [@Victor\_BERIARD](https://community.n8n.io/u/Victor_BERIARD)\
**Post date:** [September 25, 2025, 9:54am UTC](https://community.n8n.io/t/salesforce-connection-issue-with-n8n-oauth-error/193442/6 "2025-09-25T09:54:14Z")

</div>

Hi everyone,

After a lot of trial and error we finally found the root cause of the `OAUTH_APPROVAL_ERROR_GENERIC` issue when trying to connect Salesforce with n8n Cloud.

👉 The fix is on the Salesforce side:

1. Go to **Setup → External Client Apps OAuth Usage**

2. Find and select the **n8n app**

3. Click **Install**

4. Once installed, you can manage the permissions/policies of the Connected App (e.g. permitted users, IP relaxation, refresh token policy, etc.)

After doing this, the connection from n8n Cloud worked right away. 🚀

Hopefully this helps anyone running into the same problem!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [December 24, 2025, 9:54am UTC](https://community.n8n.io/t/salesforce-connection-issue-with-n8n-oauth-error/193442/7 "2025-12-24T09:54:18Z")

</div>

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