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 | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 10,191 Reputation points Microsoft External Staff Moderator
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.