Azure Automation: [Unauthorized] : Insufficient privileges to perform requested operation by the application

kindi 0 Reputation points


I am experiencing issues with integrating the Azure application 00000003-0000-0000-c000-000000000000 (Microsoft Graph) through Azure Automation. I receive an authorization error when running scripts that use this application. Below are the details of the issue:

Issue Details:

  • Context: I am using Azure Automation to automate user management operations through the Microsoft Graph API.
  • Error Encountered: [Unauthorized] : Insufficient privileges to perform requested operation by the application '00000003-0000-0000-c000-000000000000'. ControllerName=MSGraphInviteAPI, ActionName=CreateInvite, URL absolute path=/api/xxxxxxxxxxxxxxxxxxxxxxxxxx/invites
  • NB: My script works well in cloud shell but not in my runbook 7.2

User's image

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,368 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,187 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,542 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 8,300 Reputation points

    Hello Kindi Mohamed DIALLO,

    Thanks for your question.

    I will recommend you ensure that the authentication method used in your runbook is correctly configured to use the appropriate permissions.

    See: Quickstart: Enable managed identities for your Automation account using the Azure portal and assign the permissions you need.

    Please let me know if you have further questions**

    You can mark it 'Accept Answer' if this helped you

    0 comments No comments