How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?

Muhammad Zubair 5 Reputation points
2024-03-29T06:58:25.0666667+00:00

Hello,

I'm facing an issue in Azure AD B2C to authenticate only Local and Guest users. It is possible with just an application of a single tenant. But We need to add custom claims in token which is not possible at the application level.

let me explain my requirements, I need to authenticate only those users who are in the current tenant(B2C tenant) or invited as a guest from other tenants. this is possible with just application but I need to add some custom claims to the token. With only the application, I cannot add custom claims to the token.

I have done some R&D but I found that guest users are only to manage tenants, but why does it authenticate with the application level?

Is it possible to authenticate only local and guest users( invited from the other tenant)?
Is it possible to add custom claims on the application level?
Is it possible with Just User flow or do we need a custom policy?

Your help would be appreciated.

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
654 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,381 questions
Microsoft Entra
{count} votes