我缺少获得组织目标名称的LinkedIn API权限吗? [英] What LinkedIn API permission am I missing to get organization target name?

查看:75
本文介绍了我缺少获得组织目标名称的LinkedIn API权限吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用LinkedIn API v2.0,我目前正在尝试获取他们作为管理员的经过身份验证的用户的组织ID和名称的列表.我可以使用以下方法获取所有组织ID:

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}}

但是当我添加"organizationTarget~"作为字段参数的一部分时,我得到一个错误提示

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

没有足够的权限来访问字段organizationalTarget〜 GET-roleAssignee/organizationalEntityAcls"

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

我应该使用其他端点来获取此数据还是缺少什​​么权限?验证时,我目前正在使用 r_basicprofile rw_company_admin rw_organization 范围.

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.

推荐答案

您可以尝试以下API调用:

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)))'

希望获得帮助

这篇关于我缺少获得组织目标名称的LinkedIn API权限吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆