- I got the Access Token (with scope:
r_basicprofile rw_company_admin w_share
) using the Client ID, Client Secret at following URLs: 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" -H "X-Restli-Protocol-Version: 2.0.0" https://api.linkedin.com/v2/me
Get response:
{ "serviceErrorCode": 100, "message": "Not enough permissions to access /me GET ", "status": 403 }
Similar erroneous responses are returned to any requests for https://api.linkedin.com/v2/
In official documentation there is difference requirements to headers:
But I tried both, and nothing worked.
Requests to the https://api.linkedin.com/v1/ (using the same token) successfully return data.
Please, tell me what I'm doing wrong.
{ "serviceErrorCode": 100, "message": "Not enough permissions to access /me GET ", "status": 403 }
– Reconnoiterr_liteprofile
instead ofr_basicprofile
(see learn.microsoft.com/en-us/linkedin/consumer/integrations/…, especially where it saysr_liteprofile (replaces r_basicprofile)
). – Onieonion