Unable to post message via Yammer API in group belongs to External Network

kozoo 1 Reputation point
2022-05-01T07:50:48.723+00:00

Hi,
We have two networks in our Yammer:

Home network - used internally in our company

External network - to post some information for our partners.

197976-image.png

We set up some automation using Yammer API to post messages from the scripts. It works fine but only for our Home Network.
When trying to post a message in a group that belongs to an external network I'm getting (403) Forbidden response.

When call https://www.yammer.com/api/v1/networks/current.json I got information about both networks,

The same situation in case of call /oauth/tokens.json resource -> I get a response containing details about both networks.

How looks my request:

headers:

    Authorization = Bearer [JWT token]  

    'Content-Type' = 'multipart/form-data'  

    'Accept-Encoding' = 'giz,deflate,br'  

    'yammer-capbilities' = 'external-messaging,external-groups'  

body:

    body = 'text of yammer post'  

    group_id = 'number of a group in Yammer'  

    is_rich_text = 'true'  

    message_type = 'normal'  

    title = 'title of yammer post'  

This works perfectly when I'm posting in the primary home network.
I googled a whole internet but found nothing. Please help.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,533 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 30,186 Reputation points Microsoft Vendor
    2022-05-02T01:24:30.603+00:00

    Hi @kozoo ,
    Since the issue is about Yammer. Microsoft has a dedicated forum to discuss about Yammer. You can get some more professional advice in the following forum.
    https://techcommunity.microsoft.com/t5/yammer/ct-p/Yammer


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments