Search code examples
azureazure-active-directoryyammer

Yammer Rest API with Azure AD Token


It is possible to use Azure SSO Token to call Yammer Rest API?

I registered an Application portal.azure.com>Azure Acitve Direcotry. The application is a Spring Boot which is deployed as Azure Web App.

Getting a token over Web App is no Problem, but if i tried to call Yammer Rest API e.g https://www.yammer.com/api/v1/messages/following.json with Header Authorization: Bearer eyJ0....' I'll get 401 Unauthorized.

On the Yammer Doc is the possibilty to register an Application in the yammer Network but there is nothing regarding active directory.

Did somebody found a solution


Solution

  • It is currently not supported, or recommended, to use Azure AD tokens with the Yammer API. Follow the documentation for the OAuth flows to get a token which will work with all types of Yammer user (Azure AD backed, or not) and be fully supported.