Connecting LinkedIn API via Azure Data Factory REST API Linked Service

Lee Whieldon 6 Reputation points
2022-01-25T20:19:52.167+00:00

How can I successfully use the REST API endpoint in Azure Data Factory to connect to LinkedIn API?

I am facing an issue where I try using the REST API in Azure Data Factory and try the 'OAuth2ClientCredential' (See Linked Service in ADF below):

Jqh6Q.png

Base URL = https://www.linkedin.com/oauth/v2/authorization

Token Endpoint = https://www.linkedin.com/oauth/v2/accessToken

Scope = r_ads,r_ads_reporting,r_basicprofile

I have disabled Server Certification Validation and I receive the below error:

Error Code: 20150

Details: Failed to get access token from your token endpoint. Error returned from your authorization server: {"error":"access_denied","error_description":"This application is not allowed to create application tokens"} Processed Http request failed.

Is there a field inside the Linked Service that I am neglecting to fill out to utilize the REST API to connect LinkedIn API to ADF?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
{count} vote

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2022-01-27T08:27:12.143+00:00

    Hello @Lee Whieldon ,

    Thanks for the question and using MS Q&A platform.

    As per my understanding, you are receiving the above error when you are trying to connect to Linkedin API from ADF REST connector using OAuth2ClientCredential (nothing but LinkedIn's client credentials flow). Please correct if I misunderstand the situation.

    By looking at the error message, it indicates that your application didn't have the ability to use LinkedIn's client credentials flow to get the access token. Even from below highlighted statement from public document, my understanding is that Your application cannot access the APIs by default. You may have to reach out to Linkedin support to get the permissions to use client credentials flow for accessing the APIs.

    168820-image.png

    Below are couple of stackoverflow threads where a similar topic has been discussed:

    Also want to check if you have got a chance to test the same using other tools like POSTMAN? In case if you are facing the same issue in POSTMAN then you may have to reach out to Linkedin support to get help on OAuth2clientCredentials to access the APIs.

    Hope this info helps. Please let us know how it goes.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.