question

RajeshRajan-5004 avatar image
0 Votes"
RajeshRajan-5004 asked soumi-MSFT commented

API to get the ms teams channels is failing for azure non admin users.

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 delegated permission for the registered authentication app in azure. And we also granted the admin consent for those permissions.

We could n't understand why this happens? We are facing this issue in our production environment. This turning out to be a showstopper for us. Could you please take it as high priority and help us solve the issue?






azure-active-directoryazure-ad-graph
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RajeshRajan-5004

According to your description, your issue is more related to development, which we do not support. I recommend you add the “azure-active-directory” tag for your post. This will help your issue be seen by other community members.

0 Votes 0 ·

Sure JimmyYang. Thanks

0 Votes 0 ·

1 Answer

soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered soumi-MSFT commented

@RajeshRajan-5004, Thank you for reaching out. For the following API to work, you need to use a work or school account to login and get a token for the user using the Auth-Code Grant Flow. More details on this api can be found here: https://docs.microsoft.com/en-us/graph/api/channel-list?view=graph-rest-1.0&tabs=http

Hope this helps.

Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.



· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@soumi-MSFT , Thanks for the response. We are using the work account to login and also we get token for the user using the Auth-Code Grant Flow. we use adal nodejs package for the auth code grant flow https://www.npmjs.com/package/adal-node

0 Votes 0 ·

@RajeshRajan-5004, Thank you for sharing the update. it looks like this would need some deeper troubleshooting to understand where things are failing. Do send the following details to azcommunity[at]microsoft[dot]com:

  • Tenant ID/Tenant Name:

  • Azure Subscription ID:

  • Application ID:

Note: Please do not forget to mention this thread's URL in the email, so that its easier for me to track this out and help you better.

0 Votes 0 ·

@soumi-MSFT , sorry for the late response. It took some time for me to collect these application and subscription details. I send all the details that you requested in mail to azcommunity@microsoft.com. Please check it and let me know if you need anything else for debugging. The subject of the email that I sent is

Regarding the ms teams issue in the api to get channels for the azure normal users

Thanks for taking this up. Appreciate your help in debugging this.

0 Votes 0 ·
Show more comments