LinkedIn API Error: Insufficient Permissions for GET Userinfo

Oleg 30 Reputation points
2023-09-11T13:34:26.5233333+00:00

I'm encountering an issue with LinkedIn's API; I'm using OAuth 2.0 authentication, and have specified the 'profile' permission in the request. However, I'm seeing the error {"serviceErrorCode":100, "message":"Not enough permissions to access: GET /userinfo"}. I've double-checked that the permission is correctly specified in the request and consent screen, and that 'profile' permission is enabled in my app's developer dashboard. Despite reading the documentation, I'm still unable to solve this issue. Can anyone provide me with insights or suggestions? Thank you for your assistance.

Microsoft Entra Internet Access
Microsoft Entra Internet Access
A Microsoft Entra service that provides an identity-centric Secure Web Gateway that protects access to internet, software as a service (SaaS), and Microsoft 365 apps and resources.
28 questions
0 comments No comments
{count} vote

Accepted answer
  1. 2023-09-11T23:39:01.13+00:00

    Hello @Oleg , in order to be able to access https://api.linkedin.com/v2/userinfo you need to ensure you also include the openid scope with your access token request.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.

    1 person found this answer helpful.

5 additional answers

Sort by: Most helpful
  1. Jahanzaib Babar 5 Reputation points
    2024-03-17T21:05:02.83+00:00

    Hey, I'm facing the same issue with '/me' endpoint that provides that PROFILE URN.

    When I hit the endpoint:

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

    It showed this error:

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

    I have both products enabled, the 'Sign In with LinkedIn using OpenID Connect' and 'Share on LinkedIn'.

    I want to create a new text post on behalf of the user. However, after extensive exploration, I have discovered that I require a User Profile URN to initiate this action. Despite several hours of effort, I have been unable to locate a reliable resource to obtain this information.

    If there is an alternative method or resource available to facilitate the creation of a new text post, I would greatly appreciate your guidance. Your assistance in this matter would be invaluable to me.

    Thank you for your consideration.

    1 person found this answer helpful.
    0 comments No comments

  2. Thorsten Rood 5 Reputation points
    2024-04-10T23:36:47.1466667+00:00

    same here. both apps assigned. /userinfo is working fine but /me claims the same permissions error.

    1 person found this answer helpful.

  3. Rohit K 0 Reputation points
    2024-04-11T13:32:37.63+00:00

    same here. /userinfo is working but /me says "Not enough permissions to access: GET /me"

    0 comments No comments

  4. Nitin 0 Reputation points
    2024-05-02T18:54:15.9766667+00:00

    Any one found the issue? Please do comment
    Thank You!

    0 comments No comments

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.