Hello @shashank kawle
I understand that you have two separate web apps, each with its own set of users, and that there is a possibility that a user from App1 may also be part of App2. Additionally, you've created a single Azure AD B2C tenant.
Regarding your queries:
- You can differentiate users between the two applications by using custom claims, which can be implemented through user flows in Azure AD B2C. You can also explore using custom roles, or custom user attributes to achieve this differentiation.
- By creating two distinct user flows in Azure AD B2C one for App1 and another for App2 you can customize the claims for each flow, allowing you to differentiate users based on the application they belong.
- Create a custom attribute for each user flow and associate these attributes with the respective applications. For App1, configure a user flow with a custom attribute, and for App2, create a separate user flow with a different custom attribute. These distinct user flows will help you identify which users belong to which application. Make sure to configure the user flow based on the users' associations and have the respective attribute for the users.
For more detailed guidance, refer to this document: Azure AD B2C User Flow Custom Attributes.
Do let us know if you any further queries.