Share via

AzureAD access from Function

Daniel Hood 1 Reputation point
2021-06-07T13:12:05.067+00:00

I'm trying to use an Azure Function to modify user accounts in AzureAD. I want to run "Set-AzureADUser", etc within the Azure Function and have it modify AzureAD. I've assigned a Managed Identity to my Azure Function, but this only seems to give me access to Azure resources within my subscription. How do I either assign permissions for this managed identity to access AzureAD or provide access somehow for my Azure Function to modify AzureAD?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. Sam Cogan 10,867 Reputation points Microsoft Employee
    2021-06-08T08:53:48.627+00:00

    You need to grant access to the appropriate Azure AD Graph API to your managed identity. Unfortunately there isn't a way to do this through the UI but this article shows how to do it through the command line.

    Was this answer helpful?


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.