n8n icon indicating copy to clipboard operation
n8n copied to clipboard

n8n LinkedIn credentials

Open yashaleo opened this issue 8 months ago • 5 comments

Bug Description

I'm trying to link my LinkedIn credentials to n8n. But it keeps asking for more permissions than it should. "error":"unauthorized_scope_error","error_description":"Scope "w_organization_social" is not authorized for your application" I have followed your steps from the LinkedIn Credentials page over and over again. I'm choosing Community Management OAuth2. entering my Client ID and Client Secret. But the OAuth2 keeps trying to ask for w_organization_social which I don't need and I keep getting errors.

To Reproduce

Click Create Credentials Select LinkedIn Community Management OAuth2 API Add Client ID and Secret Add Redirect URL to LinkedIn app. Added and approved the Products several times. Did every step over and over again, deleting app, credentials, waiting, and trying and trying for about 2 hours now....

Expected behavior

For credentials to go through easily like in docs and every YouTube tutorial I have seen...

Operating System

n8n Cloud

n8n Version

1.88.0

Node.js Version

?

Database

SQLite (default)

Execution mode

main (default)

yashaleo avatar Apr 15 '25 21:04 yashaleo

Hey @yashaleo,

We have created an internal ticket to look into this which we will be tracking as "GHC-1601"

Joffcom avatar Apr 15 '25 21:04 Joffcom

@yashaleo try to uncheck this :

Image

It worked for me!

KevinLetellier avatar Apr 17 '25 13:04 KevinLetellier

@KevinLetellier Thanks, but when I do that, I get ""error":"unauthorized_scope_error","error_description":"Scope "openid" is not authorized for your application","state":" And that is using the LinkedIn OAuth2 API, the docs recommend using Community Management OAuth2. But more and more people are uploading issues about LinkedIn connection, so hopefully they will fix it soon.

yashaleo avatar Apr 17 '25 15:04 yashaleo

@yashaleo I have the same issue. For this to work, and be able to post to company pages, you need to have access to the "Advertising API", which you can enable in your developer app. Getting access to this requires you to apply for it, so the request can be declined.

michielgerritsen avatar May 22 '25 13:05 michielgerritsen

@KevinLetellier it works if you uncheck "Organization Support" because the w_organization_social scope is only requested when "Organization Support" is checked see /packages/nodes-base/credentials/LinkedInOAuth2Api.credentials.ts#L45

'=w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social": $self["legacy"] === true ? ",r_liteprofile,r_emailaddress" : ",profile,email,openid"}}',

What's weird is that I managed to trigger posts via LinkedIn node using this credentials setup in March 2025 and I still have the posts on my LinkedIn's organization page (posted as organization) from a n8n.io free trial account.

It seems that LinkedIn changed their scopes or API cause n8n doc is saying:

To post as an organization, you need to put your app through LinkedIn's Community Management App Review process.

https://docs.n8n.io/integrations/builtin/credentials/linkedin/#using-oauth2

What I don't get is that it worked 2 months ago from and now isn't working anymore (at least on my self hosted n8n instance).

SimonGodefroid avatar May 27 '25 11:05 SimonGodefroid

@SimonGodefroid LinkedIn change things so it could be that it was ok and they have updated their rules.

I am going to close this issue as there doesn't appear to be a bug here

Joffcom avatar Jun 21 '25 11:06 Joffcom