Regarding Rate Limit for Graph API

Deeptha 21 Reputation points
2022-04-25T13:50:38.217+00:00

Hey,
I would like to know the rate limit per app per tenant and per app across all the tenants for these API's:

  1. /groups?$select=id,resourceProvisioningOptions : listing all the teams in the tenant
  2. https://graph.microsoft.com/v1.0/teams/${teamId}/channels : listing all the channels in the particular team
  3. /v3/conversations/{conversationId}/pagedmembers?pageSize={pageSize} : listing members of particular channel
  4. https://graph.microsoft.com/v1.0/teams/${teamId}/channels/${channelId} : to get channel Details using Channel ID
  5. https://graph.microsoft.com/v1.0/users/{id | userPrincipalName} : to get member details using Id
  6. /v3/conversations/<conversationId/channelId>/activities/<activityId>/ : Sending message to a particular Channel
Microsoft Security | Microsoft Graph
{count} votes

Answer accepted by question author
  1. CarlZhao-MSFT 46,406 Reputation points
    2022-04-28T02:36:32.693+00:00

    Hi @Deeptha

    Regarding Rate Limit for Graph API

    Please refer this documentation to know about Microsoft Teams Service API rate limits.

    I am getting this error Requested API is not supported in application-only context. But I have the required permissions "ChatMessage.Send, Chat.ReadWrite". What could be the issue here?

    As your error message says, send messages does not support application-only context for the time being, it currently only supports user context.

    197135-2022-04-28-103113.png

    So you need to grant ChatMessage.Send delegation permission for your application, and then you need to use the auth code flow with user participation to get the access token, and then you will be able to use the user token to call the /chats/chat-id/messages api endpoint to send messages.


    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

2 additional answers

Sort by: Most helpful
  1. Deeptha 21 Reputation points
    2022-04-28T07:12:35.81+00:00

    I gave ChatMessage.Send delegation permission for my application and did the auth flow to get the accesstoken. But still I am getting the same error from the API


  2. Deeptha 21 Reputation points
    2022-04-28T07:21:20.92+00:00

    I did, I could not see "ChatMessage.Send" permission in the parsed access token. But I have given the permission and granted the admin consent.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.