Integrations
Set up LinkedIn OAuth for professional networking and social posting
Overview
Section titled “Overview”Connect the application’s users to LinkedIn for professional profile data, social posting, and organizational content.
| Property | Value |
|---|---|
| Provider ID | linkedin |
| Category | Social |
| PKCE | Not supported |
| Token refresh | Automatic (Marketing Developer Platform partners only) |
| Redirect URI | Shown in Developer Portal |
Step 1: Create a LinkedIn OAuth App
Section titled “Step 1: Create a LinkedIn OAuth App”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.
Step 2: Add to Alter Vault
Section titled “Step 2: Add to Alter Vault”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.
Available Scopes
Section titled “Available Scopes”| Scope | Description |
|---|---|
openid | Authenticate with LinkedIn using OpenID Connect |
profile | View the user’s basic profile information |
email | View the user’s primary email address |
w_member_social | Post, comment, and like posts on behalf of the authenticated member |
w_member_social_feed | Create, modify, and delete comments and reactions on the member’s behalf |
r_organization_social | Retrieve organization posts, comments, likes, and engagement data |
r_organization_social_feed | Read social actions for organizations the member administers |
w_organization_social | Post, comment, and like posts on behalf of an organization the member administers |
w_organization_social_feed | Manage social actions for organizations the member administers |
r_organization_admin | Retrieve organization pages and reporting data including follower, visitor, and content analytics |
rw_organization_admin | Manage organization pages and retrieve reporting data (administrator role required) |
r_organization_followers | Use organization follower data to enable mentions in posts |
r_basicprofile | Use the member’s basic profile including name, photo, headline, and public profile URL |
r_1st_connections_size | Retrieve the count of the authenticated member’s 1st-degree connections |
r_member_postAnalytics | Retrieve analytics for the member’s posts (impressions, reactions, comments, shares) |
r_member_profileAnalytics | Retrieve the member’s profile analytics (viewers, followers, search appearances) |
- LinkedIn now uses OpenID Connect for member authentication. Use
openid,profile, andemailrather than the deprecatedr_liteprofileandr_emailaddressscopes — apps created after August 1, 2023 (when “Sign In with LinkedIn using OpenID Connect” replaced the legacy product) reject those legacy scopes withunauthorized_scope. w_member_socialis 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.
Policy-cataloged operations
Section titled “Policy-cataloged operations”Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.
| Operation ID | Families | Method | Provider path |
|---|---|---|---|
posts/create | send | POST | /rest/posts |
ugc-posts/create | send | POST | /v2/ugcPosts |
social-actions/comments/create | send, write | POST | /v2/socialActions/{shareUrn}/comments |
posts/delete | delete | DELETE | /rest/posts/{postUrn} |
reactions/create | write | POST | /rest/reactions |
images/initialize-upload | write | POST | /rest/images |
videos/initialize-upload | write | POST | /rest/videos |
posts/get | read | GET | /rest/posts/{postUrn} |
posts/list-by-author | read | GET | /rest/posts |
social-actions/comments/list | read | GET | /v2/socialActions/{shareUrn}/comments |
me/get | read | GET | /v2/me |
userinfo/get | read | GET | /v2/userinfo |
organizations/get | read | GET | /rest/organizations/{organizationId} |
organization-acls/list | read | GET | /v2/organizationAcls |
org-share-statistics/list | read | GET | /rest/organizationalEntityShareStatistics |