Could not grant admin consent. Your organization does not have a subscription (or service principal) for the following API(s): Microsoft Graph,Dynamics CRM,Azure Key Vault,Azure DevOps

Asger Egil Waagner Nielsen (AEWN) 0 Reputation points
2024-08-28T08:20:24.8733333+00:00

We have an app registration with the following api permissions for microsoft.graph:

User's image I can grant admin access for all except the Mail.Send where I get this error:

Could not grant admin consent. Your organization does not have a subscription (or service principal) for the following API(s): Microsoft Graph,Dynamics CRM,Azure Key Vault,Azure DevOps

I'm not sure what to do here

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

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 41,126 Reputation points
    2024-08-28T09:15:43.4233333+00:00

    Hi @Hi @Asger Egil Waagner Nielsen (AEWN)

    Please ensure that you have the Global Administrator role. Additionally, the Mail.Send application permission is a global permission specific to the Mail API, and you also need to ensure that your tenant has an MS 365 subscription.

    Hope this helps.

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


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.