简体   繁体   English

Yammer API获取“所有公司”中所有用户的列表

[英]Yammer API get list of all users in All Company

https://www.yammer.com/api/v1/users/ does not work and only gives me users in the current user's Yammer network. https://www.yammer.com/intl/zh-CN/api/v1/users/不起作用,仅向我提供当前用户的Yammer网络中的用户。 I need every single user. 我需要每个用户。

If All Company had an ID I could use https://www.yammer.com/api/v1/users/in_group/ 如果所有公司都有ID,我可以使用https://www.yammer.com/api/v1/users/in_group/

Moreover, https://www.yammer.com/api/v1/groups does not seem to have All Company within it 而且, https: //www.yammer.com/api/v1/groups似乎内部没有所有公司

On the backend, All Company is not actually a group. 在后端,All Company实际上不是一个组。 It behaves kind of like a group in the UI, but with notable difference like users not being able to leave All Company. 它的行为有点像UI中的组,但是有明显的区别,例如用户无法离开All Company。 This and other difference betray the fact that the Yammer backend does not in fact treat All Company as a normal group. 这一差异和其他差异表明,Yammer后端实际上并未将All Company视作正常群体。

Hitting the users.json endpoint will give you data about all users in the users' current network. 击中users.json端点将为您提供有关用户当前网络中所有用户的数据。 This list of users is the same as the list of users who are "members" of the All Company group for that network. 该用户列表与该网络的“所有公司”组的“成员”用户列表相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM