7

I'm working the linkedin API.

After following the documentation, I 'm getting the access Token.

Then, I'm trying to get the logged in user data, but I have this error :

Not enough permissions to access: GET /me

I'm using this URL : https://api.linkedin.com/v2/me

And this as a scope : r_basicprofile

In my app, I have this list of permissions :

enter image description here

As you can see, i normally have access to r_basicprofile

3 Answers 3

11

Recently LinkedIn stopped all developer access of r_basicprofile.

You need to authorize with r_liteprofile then GET https://api.linkedin.com/v2/me will return result.

Follow Login with LinkedIn

Also Now OAuth 2.0 login is need. Process is explained in Login with LinedIn link ablove.

Sign up to request clarification or add additional context in comments.

4 Comments

The lite will send less data than needed I believe. But thanks for the info. I'll ask for being certified by Linked my app, then I think I will be able to do what I need to do :)
Yes, You need to apply for LinkedIn Partner Program for r_basicprofile permission.
In this specific example shown above, the original poster shows that he/she has permission for "r_basicprofile". Linkedin's documentation says that the authorization code should be requested via "r_liteprofile". Ok. so thats fine - initially the poster sends request via "r_liteprofile". But after that, shouldn't the poster be able get information under "r_basicprofile"? The screenshot shows the user has access to basic profile right? Also, i don't think you have to apply for "r_basicprofile". you need to apply for "r_fullprofile".
It's worth noting that LinkedIn seems to no longer support OAuth2, at least for new apps. When you make an app in the developer portal, you can only add an OpenID product which only grants the scope 'openid profile email'. Not sure of the difference between these scopes and 'r_liteprofile'. Their announcement here: linkedin.com/developers/news/featured-updates/…
6

I was having the same issue .. By changing the scope to whatever solutions are suggested online didn't help me.. The solution I found that worked for me was to replace the profile url ...

https://api.linkedin.com/v2/me

Replace the above profileURL With:

https://api.linkedin.com/v2/userinfo

You will be able to get the userdata from this. Thank you!

2 Comments

This is the correct answer and should be marked as so
This is correct answer and should be marked as accpted.
0

The scope r_liteprofile is hidden in Community Management API endpoints product.

In order to use it one have to fill out a form that will be analized by Linkedin and if they determine your request is valid they'll approve the use of Conversions API end points.

Image: Community Management API

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.