How to Revoke users?

How do I revoke user access, i.e. stop them from being able to access my apps any further?

I know that I am billed for the total number of unique users that can access my apps, regardless of if they are active or not, and so to avoid being charged for users that are no longer using my apps I should revoke their access.

Hi @forumfred

Thanks for the question. There are two ways to revoke users on the JourneyApps platform. It is done per app deployment, either using the backend Data Browser or the JourneyApps Backend API.

OPTION 1: Revoking Users via the Data Browser

  1. Access the Backend Data Browser in Question

  2. Access the ‘Users’ Table

  3. Find and select the user you want to revoke
    Example 1 - User Currently Enrolled


    Example 2 - User not Enrolled

  4. Click ‘Device Details’ (or ‘Enroll’ if the user is not currently enrolled) to go to the User/Enrollment Details Page
    Example 1 - User Currently Enrolled


    Example 2 - User not Enrolled

  5. Click ‘Lock User’ and follow the on-screen prompt

Once the user is locked, they will be listed as such in both the User Details page, and in the User Table
Example 1 - Locked User in the User Table

Example 2 - Locked User on the User Details Page


OPTION 2: Revoking Users via the Backend API
Revoking Users via the Backend API is really simple, you just need to make a POST request to /api/v4/app-instance-id/users/user-id/lock - docs here
So in the example of John Smith above, that would be a POST to https://run-testing-us.journeyapps.com/api/v4/5e34a0cf07601117d334598c/users/ad66ab80-4d54-11ea-b7e8-77bec61efea5/lock with a JSON payload of {"wipe":true/false}

This can also be done as a batch API operation, and so again in the case of John Smith that would be a POST to https://run-testing-us.journeyapps.com/api/v4/5e34a0cf07601117d334598c/batch.json
with a JSON payload of

{
    "operations": [
        {
            "method": "users/lock",
            "user_id": "ad66ab80-4d54-11ea-b7e8-77bec61efea5",
            "wipe": true/false
        }
    ]
}

I hope this helps