Skip to content

feat: add an admin API to lock/unlock an account #3941

Closed
@drev74

Description

Preflight checklist

Ory Network Project

No response

Describe your problem

I need to programmatically lock/unlock a user account. This is a normal practice in multiuser system. Then admin or support unlocks the account after user request

Describe your ideal solution

  1. Add a a boolean field locked into table identities
  2. Add two admin methods to lock/unlock the identity by setting/clearing this field

Workarounds or alternatives

I see another field called active. It is used to describe a state and prevent login before confirming email. This could be used to add a state = locked, but I still prefer to add a new boolean field locked.

Version

master

Additional Context

No response

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions