Signout User through code (Azure Ad B2C)

Manish Pandit 1 Reputation point
2022-11-21T10:55:25.82+00:00

User logs in to the App.
Claims are fetched as per user assigned roles.

Admin meanwhile update the user roles.
Now we want user to have the fresh set of roles.

So here when Admin updates the user roles we want to signout the user forcely . so that he can login back again and fresh roles can be fetched.

please guide.

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,639 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,471 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 21,621 Reputation points Microsoft Employee
    2022-11-21T23:06:41.057+00:00

    Hi @Manish Pandit have you tried just re-signing the user in and rebuilding the user cookie?

    0 comments No comments