API to get the ms teams channels is failing

Copper Contributor

We are able to get the joined teams for the user. With the team id, we are not able to get the channels for azure normal users. API to get the channels "https://graph.microsoft.com/v1.0/teams/team-id/channels" is failing with the error

{

  error: {

      code: 'Forbidden',

      message: 'Failed to execute Skype backend request GetThreadRequest.',

      innerError: {

         date: '2020-07-29T21:09:30',

         'request-id': '3c6e8d8a-fdff-433b-877e-  c785690837f5'     

        }

    }

}

Note: It is working fine for azure admin users. And we provided the Directory.Read.All, Group.ReadWrite.All delegate permission for the registered app for authentication. And we also granted the admin consent for those permissions.


We are facing this in our production environment and this turning out to be a showstopper for us. Could you please help us solve the issue?

0 Replies