Role based access for webAPI in azure B2C

dwang 11 Reputation points
2022-04-19T22:24:56.997+00:00

I need to limit web api access to some users, not all users, and have different users have access to different API.
how to do it in azure AD B2C?
I know solution for Azure AD, but I need a solution for azure AD B2C.
Please share code and tutorial.
Thanks.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,678 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,830 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sreeju Nair 11,776 Reputation points
    2022-04-20T05:16:13.497+00:00

    Azure Active Directory B2C, supports fully configurable custom policies. Custom policies are configuration files that define the behavior of your Azure Active Directory B2C (Azure AD B2C) tenant.
    Azure AD B2C uses Azure AD conditional access. You can create a policy that is based on application or user-based / group-based policies.

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/conditional-access-user-flow?pivots=b2c-custom-policy
    https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-overview

    Hope this helps