question

DanielHood-4824 avatar image
0 Votes"
DanielHood-4824 asked SaurabhSharma-msft commented

AzureAD access from Function

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-functionsazure-ad-authentication
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Sam-Cogan avatar image
0 Votes"
Sam-Cogan answered SaurabhSharma-msft commented

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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @danielhood-4824,

Please let me know if you find above reply useful. If yes, do click on 'Mark as answer' link in above reply. This will help other community members facing similar query to refer to this solution.

Thanks,
Saurabh


0 Votes 0 ·

Hi @danielhood-4824,

We have not heard back from you. Did my answer solve your issue? If so, please mark as accepted answer. If not, please let me know how I may better assist.

Thanks
Saurabh

0 Votes 0 ·