Error with Granting Admin Consent for BOT Permissions in Teams Channel

Javier de la Osa Escalada 0 Reputation points
2025-01-08T16:55:54.3+00:00

I´m trying to set up some API permission in my Azure Bot under Microsoft Graph delegated permissions. However, for some permissions it requires admin consent for them. With the right account permissions I click on consent admin permission for it and I get the following error:

It´s not possible to consent admin permissions. Your organization doesn't have a valid subscription (or service entity) for the following API: Microsoft Graph, MY_BOT_NAME.

We've checked all the configuration, subscriptions and we could not find how to grant admin access to that permissions. Anyone can help please?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,687 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,487 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 7,801 Reputation points Microsoft Vendor
    2025-01-09T05:20:07.9466667+00:00
    • Ensure that your organization has a valid Microsoft 365 subscription and that the service principal for your Azure Bot is correctly configured.
    • Ensure that your Azure AD tenant is properly configured and that you have the necessary admin privileges to grant consent.
    • Ensure that there are no conditional access policies blocking the consent process.

    If the Azure portal method does not work, you can use PowerShell to grant admin consent.
    https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=ms-powershell#grant-admin-consent-for-delegated-permissions-using-microsoft-graph-powershell

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    1 person found this answer helpful.
    0 comments No comments

Your answer

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