Yammer REST API: 401 Unauthorized when using Azure AD token and Yammer Delegated Permissions

。_饼干妹妹 提交于 2019-11-30 10:32:41

Your code sample looks correct. Does your user have an active Yammer subscription?

From an answer on the Yammer IT Pro Networks group for Office 365 developers, this:

Yammer authorization in apps is still handled completely separate from the rest of Office 365. You need to create a Yammer app in your network, and the users still needs to click the consent dialog to authorize it.

Yes, there is a delegated permission for Yammer API in Azure AD, but unless I am mistaken this does not actually do anything.

This is not from a Yammer source, because they never offer any kind of developer support or up-to-date documentation, but it seems entirely likely that this is another "feature" that simply doesn't work at all.

I have found the resolution for the problem. It appeared to be that Yammer authentication can be configured in 2 ways - one way is to configure it to use the same authentication as other parts of Office 365, and another one is to is using a different configuration.

If Yammer's own SSO is used (in other words, Yammer has a separaate configuration for ADFS), then this problem happens.If you disable Yammer SSO for your network, all yammer authentication for “mapped” users will be handled by Office365. When that’s done, you can then use the Office 365 API.

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