# Screen Visibility

In some applications, you may want to show or hide screens based on who is logged in. This is where the *Screen Visibility Logic* comes in. Let's take the example of a Task management app. Suppose we want to show a screen to create a *New Task* only for managers but hide it for other employees.

{% hint style="info" %}
Before using the screen visibility, please ensure your app is private by selecting a users database. Learn how to do it [here](/users/private-apps.md).&#x20;
{% endhint %}

1. Go to the screen you want to hide. You will see a section named, *Screen Visibility Logic.* Click on the *+ Add Logic* button.
2. Further, select the *Role* column (this could be different for your app) from your Users' database.

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

3. Add a condition where the *Role* column's data is equal to *Manager*.

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

With this, when a user logs in to the app only if their *Role* property has the value *Manager*, they can see the *New Task* screen.&#x20;

### View as a specific user

To test screen visibility in the app builder, you can click the "View as" button in the top bar and select a user.&#x20;

<figure><img src="/files/1cYCxWFfoxB8rTcNaywq" alt=""><figcaption></figcaption></figure>

*"Any user"* means no user has been selected.

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

If a screen is hidden for the currently selected user, you will see a message on top of the screen.&#x20;

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


---

# 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/customize-app/customize-a-screen/screen-visibility.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.
