Auth0 Home Blog Docs

Block user via api call

auth0
api

#1

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


#2

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


#3

works as a charm, thank you