# Tutorial: How to make pages/blocks accessible only to company users

Very often you need to make certain areas of your website or web app accessible only by internal users such as your employees. So, let's see how that can be achieved.

## Defining a Visibility Condition for a Block/Page

To restrict a specific block or page to a certain group of users, you need to set [block](https://softr.gitbook.io/softr-documentation/memberships/block-visibility) or [page](https://softr.gitbook.io/softr-documentation/memberships/page-visibility) visibility. Let's say you want to make a certain page available to your company users only. To do that, you need to change the visibility to **Logged in users** in [Page Settings](https://softr.gitbook.io/softr-documentation/studio/pages#page-settings).

![Switch visibility to logged in users](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FmTJ9y3t69Dyqmhenx7jf%2Fpage-visibility-b.png?alt=media\&token=cbc5149e-6fc7-4f3b-89cd-5571592d2ef5)

Further on, you need to [create a user group](https://softr.gitbook.io/softr-documentation/memberships/block-visibility/payment-and-other-conditions) that includes only to the users with a given email domain (e.g. your company domain).&#x20;

![Creating a user group](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FlgD2v7JhOEUkzfVuGvwy%2Fuser-group-b.png?alt=media\&token=aabf6122-a2ce-439b-8407-20a7418fff4e)

Further on, you need to select the created user group under your page's visibility settings as shown below.

![Adding a user group to a page](https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FKUxmVauuVkx4pk57GJiO%2Fvisibility-b.png?alt=media\&token=1efe32c3-d400-4caf-94d8-19d3db8d5690)

That's it. Now only the users with the specified email domain who log into your site will see the page. If you need to cover multiple domains you can just add multiple conditions for different domains or just use the **Logged in User's Email** and list all the email addressed individually.

&#x20;Let's move forward and see how you can configure the login process and manage your users.

## Enabling User Login

Even if you don't have a public sign in/sign up option, you can [set up a login page](https://softr.gitbook.io/softr-documentation/memberships/..#adding-signup-and-signin-pages) without the option to register and add your users manually. You can disable signup by switching off the Sign Up toggle from the [Sign In block](https://softr.gitbook.io/softr-documentation/memberships/user-accounts-blocks/sign-in-form) settings.

<figure><img src="https://3426011356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0NiyhsmXAcV5u1c6XK%2Fuploads%2FjIptCAkUNh1tKC3dt8ku%2Fshow-signup.png?alt=media&#x26;token=43e5d0fd-0d01-4c7d-a647-575280933fef" alt=""><figcaption><p>Show Signup toggle</p></figcaption></figure>

In the next section, we'll discuss user management aspects.

## User Management

So, if you've enabled sign in as we discussed in the previous section, you can now manually add your internal users from the [Users tab](https://softr.gitbook.io/softr-documentation/memberships/users-tab). Use the "Add User" button to add the users using their email address and setting a password for them, so that they can login the first time and change it later (don't forget to notify them about it).&#x20;

{% hint style="info" %}
To allow your users to change their default password, you need to set up a [User Profile](https://softr.gitbook.io/softr-documentation/memberships/user-accounts-blocks/user-profile) block, where they can set a new password and edit other info if needed.
{% endhint %}

## Conclusion

After completing the above-mentioned steps, you'll have a page that is only accessible by users with the specified email domain. Obviously, the same can include as many pages or blocks within your Softr app as needed.
