Getting error while calling 'teams' Microsoft Graph REST API

Tarique Salat 1 Reputation point
2022-07-21T06:54:50.61+00:00

Hi Team,
I am using GET method of REST API for 'https://graph.microsoft.com/v1.0/teams/{teams_id}/channels' however, I am getting below error in response body.

{

"error": {  
    "code": "Forbidden",  
    "message": "Teams is disabled for the tenant. Ensure the tenant has a valid Office365 subscription.",  
    "innerError": {  
        "date": "2022-07-21T05:59:14",  
        "request-id": "c35dba59-5604-4047-9d61-59dbfa7f5078",  
        "client-request-id": "c35dba59-5604-4047-9d61-59dbfa7f5078"  
    }  
}  

}

I have given maximum Application and Delegated permission to my app in Azure AD.
222955-image.png
222977-image.png
222978-image.png
223012-image.png

Is there anything that I may be missing? Request your help at the earliest please.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,544 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2022-07-21T17:02:02.263+00:00

    Hi @Tarique Salat

    Hope you are doing well.

    Per my research, there can be multiple things that you can check at your end-

    • Is your Office 365 subscription expired?
    • Check if your user has a valid Teams license?
    • Is service enabled for Microsoft Teams for that particular user?

    However, I would suggest you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests.

    Alternatively, you can look into a similar thread.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments