Skip to content

Integrations

LinkedIn

Set up LinkedIn OAuth for professional networking and social posting

Connect the application’s users to LinkedIn for professional profile data, social posting, and organizational content.

PropertyValue
Provider IDlinkedin
CategorySocial
PKCENot supported
Token refreshAutomatic (Marketing Developer Platform partners only)
Redirect URIShown in Developer Portal

Go to the LinkedIn Developer Portal

Navigate to linkedin.com/developers/apps and sign in.

Create a new app

Click Create app, enter the app name, associate it with a LinkedIn Page, add a privacy policy URL, upload a logo, and agree to the API Terms of Use.

Configure the redirect URI

Under the Auth tab, add the Alter callback URL from the Developer Portal to Authorized redirect URLs for the application.

Get credentials

Copy the Client ID and Primary Client Secret from the Application Credentials section of the Auth tab.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add LinkedIn provider

Go to OAuth Providers > Add Provider > LinkedIn.

Enter credentials

  • Client ID: Paste the LinkedIn Client ID
  • Client Secret: Paste the LinkedIn Client Secret

Select scopes

Choose the scopes the application needs.

Save

Click Save. The provider is now active.

ScopeDescription
openidAuthenticate with LinkedIn using OpenID Connect
profileView the user’s basic profile information
emailView the user’s primary email address
w_member_socialPost, comment, and like posts on behalf of the authenticated member
w_member_social_feedCreate, modify, and delete comments and reactions on the member’s behalf
r_organization_socialRetrieve organization posts, comments, likes, and engagement data
r_organization_social_feedRead social actions for organizations the member administers
w_organization_socialPost, comment, and like posts on behalf of an organization the member administers
w_organization_social_feedManage social actions for organizations the member administers
r_organization_adminRetrieve organization pages and reporting data including follower, visitor, and content analytics
rw_organization_adminManage organization pages and retrieve reporting data (administrator role required)
r_organization_followersUse organization follower data to enable mentions in posts
r_basicprofileUse the member’s basic profile including name, photo, headline, and public profile URL
r_1st_connections_sizeRetrieve the count of the authenticated member’s 1st-degree connections
r_member_postAnalyticsRetrieve analytics for the member’s posts (impressions, reactions, comments, shares)
r_member_profileAnalyticsRetrieve the member’s profile analytics (viewers, followers, search appearances)
  • LinkedIn now uses OpenID Connect for member authentication. Use openid, profile, and email rather than the deprecated r_liteprofile and r_emailaddress scopes — apps created after August 1, 2023 (when “Sign In with LinkedIn using OpenID Connect” replaced the legacy product) reject those legacy scopes with unauthorized_scope.
  • w_member_social is self-service: add the Share on LinkedIn product in the Products tab. Organization and Community Management scopes (e.g., w_organization_social, r_organization_social, r_basicprofile) require an approved Community Management API application.
  • LinkedIn issues refresh tokens only to approved Marketing Developer Platform partners. Other apps receive a 60-day access token and no refresh token, so their users must reconnect when it expires.
  • Alter cannot verify the client ID and secret when they are saved, because LinkedIn checks the authorization code before the client credentials. Credentials are first verified on the first connection.
  • See the LinkedIn OAuth 2.0 documentation for more details.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
posts/createsendPOST/rest/posts
ugc-posts/createsendPOST/v2/ugcPosts
social-actions/comments/createsend, writePOST/v2/socialActions/{shareUrn}/comments
posts/deletedeleteDELETE/rest/posts/{postUrn}
reactions/createwritePOST/rest/reactions
images/initialize-uploadwritePOST/rest/images
videos/initialize-uploadwritePOST/rest/videos
posts/getreadGET/rest/posts/{postUrn}
posts/list-by-authorreadGET/rest/posts
social-actions/comments/listreadGET/v2/socialActions/{shareUrn}/comments
me/getreadGET/v2/me
userinfo/getreadGET/v2/userinfo
organizations/getreadGET/rest/organizations/{organizationId}
organization-acls/listreadGET/v2/organizationAcls
org-share-statistics/listreadGET/rest/organizationalEntityShareStatistics

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.