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

前端 未结 3 1044
闹比i
闹比i 2021-01-01 07:47

I am creating an Azure AD App that is using the new Yammer delegated permissions preview to post a message to Yammer using the access token that I obtained from Azure AD. Un

相关标签:
3条回答
  • 2021-01-01 07:50

    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.

    0 讨论(0)
  • 2021-01-01 07:54

    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.

    0 讨论(0)
  • 2021-01-01 08:07

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

    0 讨论(0)
提交回复
热议问题