Integrating Azure AD B2C Users with Azure API Management for Access Control

hampton123 1,175 Reputation points
2023-09-01T20:43:43.0233333+00:00

I'm wondering if it's possible to integrate Azure AD B2C users with Azure API Management (APIM). I want to create an APIM instance that not only hosts a large number of APIs but also restricts and grants access for users across these APIs within the same APIM instance. While APIM excels in managing access to different APIs for individual users, I'm utilizing Azure AD B2C to handle external user management. My question is whether it's feasible to seamlessly incorporate B2C-managed users into the APIM environment, allowing for user-specific access control across multiple APIs within the APIM instance. Thanks in advance!

Also, if there's a better method of having an APIM instance that can manage user access to multiple API's using B2C, I would love to hear it :)

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,448 questions
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Accepted answer
  1. Thomas Meads 1,586 Reputation points
    2023-09-15T23:28:04.4433333+00:00

    Hi,

    Having tested this with Azure AD just to make sure I had my head round it.

    All developer portal users are treated the same regardless of where their identity comes from. So yes you can control user accounts from B2C using subscriptions on the account and connecting that to a product or an API.

    Follow the guide provided by @JananiRamesh-MSFT to add Azure B2C auth. Then once the user signs up you will be able to assign them to the apis you wish for them to access.

    Hope this helps.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.