What LinkedIn API permission am I missing to get organization target name?

£可爱£侵袭症+ 提交于 2019-12-04 05:21:33

问题


Using LinkedIn API v2.0 I'm currently trying to get a list of organisation ids and names for authenticated user that they are administrator of. I'm able to get all organisation ids using:

https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&start=0&count=100&fields=organizationalTarget&oauth2_access_token={{OAUTH_ACCESS_TOKEN}}

but when I add "organizationTarget~" as apart of fields parameter I get an error saying

"not enough permissions to access field organizationalTarget~ for GET-roleAssignee /organizationalEntityAcls"

Should I be using a different endpoint to get this data or what permission am I missing? I currently am using r_basicprofile, rw_company_admin, and rw_organization scopes while authenticating.


回答1:


You can try with this API call:

 curl -i -X GET \
   -H "Authorization:Bearer <ACCESS-TOKEN>" \
 'https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&projection=(elements*(organizationalTarget~(localizedName)))'

Hope this help




回答2:


I found the answer on this page: https://docs.microsoft.com/en-us/linkedin/shared/references/migrations/permissions-resources-mapping

"rw_organization_admin" is the missing scope.



来源:https://stackoverflow.com/questions/53890861/what-linkedin-api-permission-am-i-missing-to-get-organization-target-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!