Disable user account

Hello, is it possible to disable user? I don’t want to remove, just disable, so that a user can’t login or use existing sessions. Usage of such functionality: ban user for certain period of time or disable user due to expired subscription.

Thank you.

You can use before login trigger. İf user is banned or disabled, prevent login

http://docs.parseplatform.org/cloudcode/guide/#session-triggers

1 Like

Very nice. Does it take care of existing sessions? Or do I have to remove opened sessions manually?

You should handle existing sessions manually.

1 Like