How do I ban a user?

How do I invalidate a user session?

Paul Winterhalder avatar
Written by Paul Winterhalder
Updated over a week ago

Using a Cloud Code script, you can write a method that will reject attempts of a banned user attempting to connect, and have it optionally return a ban message based on a reason attributed to that profile. Check out the example here.

Once the script is implemented, the support team can manually ban users via  Monitoring | User Monitoring | Attributes by adding the "banned" : "true" attribute, and they can also attach a "ban_reason" message.

New to Authentication? Check out our API Reference.

New to Cloud Code? Check out our Cloud Code Tutorials.

Did this answer your question?