Create a suspended user audience

Introduction

While there is no official suspension feature in the Loyalty Engine, audiences can be used to help restrict users who have been flagged for abuse or fraudulent activity. This can act as a soft suspension method without deleting the user’s account.

Why use a soft suspension?

Soft suspending a user (rather than deleting their account) means:

  • You retain visibility of their account activity

  • You prevent them from re-registering with the same email address

  • You can restrict or block loyalty logic using audience-based rules


Configuration

This configuration requires user flags. See User data & attributes for more information.

Adding the suspended user flag

  1. Navigate to Users > Members. Find the user you wish to edit (use the filtering functionality if needed). Click 'Show' next to the user.

  2. Click 'Edit' in the top right corner.

  3. Scroll down to the 'Flags' section. Click 'Add'.

  4. Call the new flag suspendedUser and set the value as true.

  5. Click 'Save' at the bottom of the page.

  6. Refresh the suspended/not suspended user audiences so the user joins / leaves them.

Creating the suspended user audience

This creates an audience of users who are suspended.

  1. Navigate to Users > Audiences and then click 'Create' in the top right corner.

  2. Give the audience a name and description. Turn on AUDIENCE_JOINED and AUDIENCE_LEFT events if needed. Set the refresh rate to 'Manual'.

  3. Move to the criteria tab. The criteria should be;

    • Flags - suspendedUser is true

  4. Click Save.

Creating the 'not suspended' user audience

This created an audience of users who are not suspended.

  • Navigate to Users > Audiences and then click 'Create' in the top right corner.

  • Give the audience a name and description. Turn on AUDIENCE_JOINED and AUDIENCE_LEFT events if needed. Set the refresh rate to 'Manual'.

  • Move to the criteria tab. The criteria should be;

    • The NOT operator should be toggled on in the criteria group

    • Flags - suspendedUser is true

  • Click Save.

Add reactor conditions and reward availability criteria

  1. Adjust your reactors to add a condition where user must be in the 'not suspended' audience.

  2. Adjust your rewards so they're only visible or purchasable to users in the 'not suspended' audience.


Tips

  • You can 'unsuspend a user' by removing the suspendedUser flag, or setting it to false if you want to keep a marker on their account that it was previously suspended.

Last updated

Was this helpful?