Block user via api call

I have an active/inactive user functionality. I was thinking to use the unblocked/blocked functionality.
I’m using .net and I didn’t found any way to do this via api. Is there a way? how can this be implemented?

Thank you,
Radu

There is not an explicit call for doing this on the management API, you simply patch the user with { blocked: true } or { blocked: false }

5 Likes

works as a charm, thank you

2 Likes

Hi! I am a Product Manager on the User Management team.

I’d love the opportunity to chat you on why and how you intentionally block users. I’m particularly interested in admin or your 3rd party system initiated blocks (separate from the auto blocks performed by Auth0’s Anomaly detection).

Let me know if you’re interested and we can set up a 30 min video chat:)