Search code examples
linkedin-api

LinkedIn API V2 - How to get profile photo used for an organization?


I'm using the endpoint https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&projection=(elements*(organizationalTarget~(localizedName)))&oauth2_access_token={{access_token}} to get all organizations for a user. I tried different projection fields but still wasn't able to get the profile photo. Is there a way to change projection to get photo or is there possibly another endpoint to get this?


Solution

  • I could not figure out a way to get back a logo with the organizationalEntityAcls endpoint. I do not believe its available.

    Instead I called the organizations end point with the ids send back from the above.

    NOTE: organizationId is just the id not the full URN.

    https://api.linkedin.com/v2/organizations/{organizationId}?projection=(logoV2(original~:playableStreams)),