Skip to content

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

Closed

Description

@rsforbes

I was running the Simple API Request Example in the README.md and receiving the error in the title.

from linkedin_api.clients.restli.client import RestliClient

restli_client = RestliClient()

response = restli_client.get(
  resource_path="/me",
  access_token=<THREE_LEGGED_ACCESS_TOKEN>
)
print(response.entity)

I have a three legged access token, but perhaps I'm not understanding "Request access to the Sign In With LinkedIn API product." The only product that appeared available on the Products Page for my app was "Share on LinkedIn" and "OpenID Connect". The others appear to be more indepeth.

I'm thinking I've overlooked something drastically simple and just don't see it?

Activity

  1. shimizust commented on Oct 26, 2023

    @shimizust
    Contributor

    Hi @rsforbes I am no longer with the team that manages these API products, but I believe OpenID Connect replaced Sign In With LinkedIn, and the APIs are now different.

    This example needs to be updated. @swathivshenoy

  2. joaomorossini commented on Nov 19, 2023

    @joaomorossini

    I'm facing the same issue! The official docs apparently contradict each other. There seems to be some sort of incompatibility with the permissions/scopes

  3. joaomorossini commented on Nov 19, 2023

    @joaomorossini

    Hi @rsforbes I am no longer with the team that manages these API products, but I believe OpenID Connect replaced Sign In With LinkedIn, and the APIs are now different.

    This example needs to be updated. @swathivshenoy

    Hey man, can you please point us to who could help us with this? Any help will be much appreciated.

  4. swathivshenoy commented on Nov 20, 2023

    @swathivshenoy
    Contributor

    Hi @rsforbes @joaomorossini
    The previous Sign-In with LinkedIn product is now deprecated and replaced with Sign-In with LinkedIn using OpenID Connect. The right way to use this is linked here
    You will need to request scopes openid, profile and email and then use that token with the endpoint /userinfo instead of me as indicated here.

    I will update the ReadMe to update the example.

  5. joaomorossini commented on Nov 21, 2023

    @joaomorossini

    Hi @rsforbes @joaomorossini The previous Sign-In with LinkedIn product is now deprecated and replaced with Sign-In with LinkedIn using OpenID Connect. The right way to use this is linked here You will need to request scopes openid, profile and email and then use that token with the endpoint /userinfo instead of me as indicated here.

    I will update the ReadMe to update the example.

    Thanks a lot, @swathivshenoy . It worked!

  6. added a commit that references this issue on Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions