# Private apps

This document details how to create a login-enabled app on top of Notion databases.&#x20;

{% embed url="<https://www.youtube.com/watch?v=gdkg-oPsw3E>" %}

To create a private app on NotionApps, you need to follow these steps:

### #1 Create a Users database

First, you need to create a Users database. You can skip this step if you've already created one.&#x20;

A users database should have at least two properties. A name property and an email address property.  Every email address present in the Users database can log in to the app.

{% hint style="success" %}
You can duplicate this [Sample Users Database](https://utilizeapp.notion.site/Users-Database-NotionApps-7af55a9e8f33415d93fb0c39134d9a85) to get started.
{% endhint %}

### #2 Link your database to the application

If your Users database is already linked to the application, you may move to step #3. &#x20;

To link your Users database to the application,&#x20;

1. Go to the "Databases" tab in the app builder.
2. Select the desired database.

<figure><img src="/files/bYHEG7829flItzbByoeT" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GVfFe0as5ACcvTKJVnjh" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Newly linked databases could take up to a minute to show up.&#x20;
{% endhint %}

### #3 Configure Users Database for the app

Now, you need to configure your application to select the database your users are pulled from.

1. Go to the "Users" tab.
2. Click on "Select Users Database".

<figure><img src="/files/U69rImF2akNDv1WojIQp" alt=""><figcaption></figcaption></figure>

3. Select the appropriate database, email and name properties.
4. Click on "Confirm".
5. A confirmation popup would show up, click the "Yes, go ahead" button.

<figure><img src="/files/57PJN247UcoqWzxuk28E" alt=""><figcaption></figcaption></figure>

Your application's users database is now configured. The email addresses in this database can log in to the application.&#x20;

<figure><img src="/files/mcN14oQ0COVCVE972HH9" alt=""><figcaption></figcaption></figure>

## Login Methods

NotionApps supports the following login methods:

1. Email address + Access Code
2. Login via Google (PLUS plan & above)&#x20;
3. Email address + Password (PLUS plan & above, coming soon)
4. Login via Microsoft (PRO plan & above, coming soon)
5. Enterprise SSO (ENTERPRISE plan, coming soon)

## Enable Google Login Method

{% hint style="warning" %}
Google login is only available on paid plans.
{% endhint %}

To enable Google login for your application, you can do the following:

1. Go to your applications' "Users" tab.
2. Click on "Change App Privacy".

<figure><img src="/files/dGBCFMX7XRU686jikshf" alt=""><figcaption></figcaption></figure>

3. Enable the "Google Login" toggle and click "Confirm".

<figure><img src="/files/a1bgDNF9Nyb8ljCDkBUc" alt=""><figcaption></figcaption></figure>

4. Publish your application.

<figure><img src="/files/hbRbaBBB5m3FPoUPdGd9" alt=""><figcaption></figcaption></figure>

Now, you can see a "Login with Google" button in your apps.&#x20;

<figure><img src="/files/3DElgekGEPkOLGh2q2am" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
To learn how to add or remove users, please go to [Add/Remove users](/users/add-remove-users.md).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.notionapps.com/users/private-apps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
