How can administrators disable accounts on Indico v2?


#1

We notice that the “disable the account” button had been disappeared from User’s profile page on Indico v2.

Can we disable accounts on Indico v2 ?
If it is possible, how can we do that ?


#2

Hey, you can do something like that using indico shell command.

>>> user = User.get_one(user_id)
>>> user.is_blocked = True // you can also use user.is_deleted = True, but that depends on your usecase
>>> db.session.commit()

#3

Thank you for your answer.
I confirmed we can block/delete accounts.

I appreciate your quick and clear answer.