AzureAD B2C - User Enable/Disable - Lock/Unlock

juni dev 361 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 Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,376 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.