Skip to content

Reference

LinkedIn

Set up LinkedIn OAuth for professional networking and social posting

Connect your users to LinkedIn for professional profile data, social posting, and organizational content.

PropertyValue
Provider IDlinkedin
CategorySocial
PKCENot supported
Token refreshAutomatic
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, fill in the app name, associate it with a LinkedIn Page, and upload a logo.

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 Client Secret from 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 your LinkedIn Client ID
  • Client Secret: Paste your 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_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.
  • Community Management / Marketing API scopes (e.g., w_member_social, w_organization_social, r_organization_social) require LinkedIn product access approval. Apply in the Products tab of the app.
  • 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/createsendPOST/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 which product and documentation features are useful.

Performance diagnostics

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

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