AzureAD B2C - User Enable/Disable - Lock/Unlock

juni dev 336 Reputation points
2022-11-02T19:16:00.377+00:00

Hi,

I need to create an API for B2C users management.
I'm going to use ms graph to do Enable/Disable user on demand.
I was also asked to create API operations for user Lock/Unlock but I do not see this available o ms graph. Is there a lock/unlock attribute or similar besides de AccountEnabled?

what about the smartlockout, can that be read/set?

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,124 questions
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,722 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 39,101 Reputation points
    2022-11-03T10:34:05.527+00:00

    Hi @juni dev

    The graph API does not provide an endpoint for Lock/Unlock b2c users. To prevent user accounts from being locked out by an attacker, Azure B2C's password protection feature can set up smart lockout, but this feature is currently limited to the portal and cannot be read/set via the graph API.

    256791-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful