3
votes

I got the Access Token (with scope: r_basicprofile r_emailaddress w_share) try with r_fullprofile too.

i'm based on this docs to authorize: https://developer.linkedin.com/docs/oauth2

Next i make request to the https://api.linkedin.com/v2/me endpoint

curl -H "Authorization: Bearer ACCESS_TOKEN"
    -H "Accept: application/json"
    -H "Content-Type: application/json"

Get response:

{
    "serviceErrorCode": 100,
    "message": "Not enough permissions to access /me GET ",
    "status": 403
}

Realy dont know why?

2
I have the same problem - see my earlier post - stackoverflow.com/questions/50358410/… - Mike Turner
Does anybody from LI monitor these posts? - Mike Turner
Please post any update you find! - Mike Turner
@MikeTurner i'm searching any solution like you - Krzysztof Makowski
Anyone solved this issue? - softdev

2 Answers

4
votes

Turns out that with the new v2 of the API you need to use the r_liteprofile and r_emailaddress scopes.

https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin