Home

Multi Tenant Azure AD App with Azure Function

%3CLINGO-SUB%20id%3D%22lingo-sub-772130%22%20slang%3D%22en-US%22%3EMulti%20Tenant%20Azure%20AD%20App%20with%20Azure%20Function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772130%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20working%20on%20creating%20an%20Azure%20Function%20that%20is%20secured%20by%20an%20Azure%20AD%20App.%20I%20have%20the%20Azure%20Function%20part%20working%20and%20it%20is%20secured%20by%20Azure%20AD%20but%20now%20I%20would%20like%20to%20allow%20users%20in%20other%20tenants%20to%20be%20able%20to%20call%20this%20Azure%20Function%20and%20access%20the%20resources%20in%20their%20tenant.%20When%20I%20share%20the%20link%20to%20the%20Azure%20Function%20with%20a%20user%20the%20auth%20part%20works%20fine%20but%20then%20I%20get%20the%20following%20message.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3E%3CSPAN%3ESelected%20user%20account%20does%20not%20exist%20in%20tenant%20'%7BTenantName%7D'%20and%20cannot%20access%20the%20application%20'%7BApplicationID%7D'%20in%20that%20tenant.%20The%20account%20needs%20to%20be%20added%20as%20an%20external%20user%20in%20the%20tenant%20first.%20Please%20use%20a%20different%20account.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20left%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20left%3B%22%3E%3CSPAN%3EIs%20there%20any%20way%20for%20me%20enable%20this%20scenario%20short%20of%20adding%20the%20user%20as%20a%20guest%20in%20the%20tenant%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-772130%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Ryan Schouten
MVP

I am working on creating an Azure Function that is secured by an Azure AD App. I have the Azure Function part working and it is secured by Azure AD but now I would like to allow users in other tenants to be able to call this Azure Function and access the resources in their tenant. When I share the link to the Azure Function with a user the auth part works fine but then I get the following message.

 

Selected user account does not exist in tenant '{TenantName}' and cannot access the application '{ApplicationID}' in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account.

 

Is there any way for me enable this scenario short of adding the user as a guest in the tenant?

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies