LinkedIn API returns 403 when requesting a list of companies

We use the LinkedIn API to list the companies that the user inserts.

We have an App to get r_fullprofile and rw_company_admin when the user grants permission.

We are trying to list all the companies that the user has administrator access to: http://api.linkedin.com/v1/companies:(id,name,square-logo-url)?is-company-admin=true

<error>
    <status>403</status>
    <timestamp>1432323149224</timestamp>
    <request-id>XXXXXXXXXX</request-id>
    <error-code>0</error-code>
    <message>Member [user id] does not have permission to get companies as admin.</message>
</error>

      

As per the Managing Company Pages docs, if we have an rw_company_admin scope, we should be able to call that endpoint.

I've read the docs on developer program transitions ( https://developer.linkedin.com/support/developer-program-transition ) but it doesn't seem to affect this API usage.

ETA: This has been flagged as a possible duplicate of the LinkedIn API that _any_ was unable to view company profile

This question is about getting information for one company (which the user may or may not administer). My question is about listing companies that the user specifically administers.

+3


source to share


1 answer


According to the new api changes, the user must be the administrator of the target company. Read this.



All calls to company API endpoints require the authenticated user to be marked as the administrator of the LinkedIn company page that is the subject of the API call. When you create it, you become the page administrator. If the page already exists, you will need to contact your existing administrator to grant administrator access to other LinkedIn members.

+1


source







All Articles