> For the complete documentation index, see [llms.txt](https://knowlephant.gitbook.io/react-native-share-backend-app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowlephant.gitbook.io/react-native-share-backend-app/how-to-create-admin-accounts.md).

# How to create 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](https://account.mongodb.com/account/login) and navigate to the Collections overview screen:

![](/files/-MMogGKpqCgZvI7_V8Tm)

**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" }`:

![](/files/-MMoi5GlaQRc74U3rCOO)

**Step 3: Set the 'isAdmin' field from&#x20;*****false*****&#x20;to&#x20;*****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:`

![](/files/-MMojUwdoZtgDuyg4J7Q)

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