How to create admin accounts

Admin accounts have special privileges that basic user accounts do not have. Here I will explain how to transform existing user accounts into Admin Accounts.

For Apple to accept your app in the app store, your app needs to be able to filter, flag and delete posts (and users when they break the community regulations of your platform on multiple occasions). That's why we have added a special Admin Account screen to the app, which only special privileged admin users are able to access.

Here I will show how to transform any typical user account into a special privilege admin account.

Step 1: Sign in to MongoDB and open the Collections overview

Changing the user permissions, which is necessary to create admin access, is controlled from your MongoDB database. So let's sign in to your MongoDb database and navigate to the Collections overview screen:

Step 2: Open the users collection and find a specific user

Next, you need to find the specific user that you'd like to provide Admin access to. If you're collection of users is large and spans across many pages, you can quickly filter your results with the following input { "email": "user@email.com" }:

Step 3: Set the 'isAdmin' field from false to true

Once you located the correct user collection, the final step is to update the 'isAdmin field. You do this by simply double clicking the 'isAdmin' field and modify its value to true:

Once done, press Update and you're done. The specified user now has Admin permissions once they sign in to their app account.

Last updated