<@U04UQ68083H> how to prevent a certain user from ...
# ory-copilot
s
@chilly-king-10285 how to prevent a certain user from logging in without deleting their account (I am looking for something like a block list for potentially malicious users)
c
A message from kapa.ai
Hmm, I don't know enough to give you a confident answer yet. However, you can explore the Ory documentation for more information on managing user access and permissions: https://www.ory.sh/docs/
m
Hello @some-addition-86177 You should be able to update the identity to status “inactive”
Copy code
# Every identity has a state. Inactive identities can't log into the system.
state: active
https://www.ory.sh/docs/reference/api#tag/identity/operation/updateIdentity https://www.ory.sh/docs/kratos/manage-identities/overview#identity-example Let me know if that works for you!
/reminder to self to put this into docs more clearly so the bot learns it
s
Ahh I missed that field, that’s great, just what I need, ty very much!