> ## Documentation Index
> Fetch the complete documentation index at: https://help.elationhealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing your users

## Viewing a list of Users

You can view a list of users and their status by either:

**Accessing USER\_VIEW**

**Step 1:** On the left hand navigation bar clicking on Data > Databases

**Step 2:** Clicking on ACCOUNT\_MANAGEMENT > Public

**Step 3:** Then Click on USER\_VIEW and picking your warehouse under Data Preview

<Frame caption="This will give you a comprehensive look at your users and their current state">
  <img src="https://mintcdn.com/elationhealth/c_0GuvXN24rkf1qg/images/reference/snowflake-user-view-data-preview.png?fit=max&auto=format&n=c_0GuvXN24rkf1qg&q=85&s=895f8550f81c75d0f455381f83888bdb" alt="Snowflake UI showing USER_VIEW selected under ACCOUNT_MANAGEMENT > PUBLIC > Views, with the Data Preview tab active and SUPPORT_TESTING_WH warehouse selected from the dropdown, displaying user records with CREATED_ON, DELETED_ON, and LOGIN_NAME columns." data-og-width="3504" width="3504" data-og-height="980" height="980" data-path="images/reference/snowflake-user-view-data-preview.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/elationhealth/c_0GuvXN24rkf1qg/images/reference/snowflake-user-view-data-preview.png?w=280&fit=max&auto=format&n=c_0GuvXN24rkf1qg&q=85&s=4b51e5c7c610cdd196539916eb7b0987 280w, https://mintcdn.com/elationhealth/c_0GuvXN24rkf1qg/images/reference/snowflake-user-view-data-preview.png?w=560&fit=max&auto=format&n=c_0GuvXN24rkf1qg&q=85&s=f4752e7ce20ad6fedb63f8f50e0dd4dd 560w, https://mintcdn.com/elationhealth/c_0GuvXN24rkf1qg/images/reference/snowflake-user-view-data-preview.png?w=840&fit=max&auto=format&n=c_0GuvXN24rkf1qg&q=85&s=5f649500da9df2b4e75d2a7ec78d9601 840w, https://mintcdn.com/elationhealth/c_0GuvXN24rkf1qg/images/reference/snowflake-user-view-data-preview.png?w=1100&fit=max&auto=format&n=c_0GuvXN24rkf1qg&q=85&s=4aeb1e815764d51af4296fcc636e5b10 1100w, https://mintcdn.com/elationhealth/c_0GuvXN24rkf1qg/images/reference/snowflake-user-view-data-preview.png?w=1650&fit=max&auto=format&n=c_0GuvXN24rkf1qg&q=85&s=f00fc1f140eac12d648fab968033d46d 1650w, https://mintcdn.com/elationhealth/c_0GuvXN24rkf1qg/images/reference/snowflake-user-view-data-preview.png?w=2500&fit=max&auto=format&n=c_0GuvXN24rkf1qg&q=85&s=a2349e34e4c5b8fe5e518f2bf25043de 2500w" />
</Frame>

**Worksheet**

Step 1: Go into a worksheet

Step 2: Run the below command

<CodeGroup>
  ```sql sql theme={null}
  SHOW USERS;
  ```
</CodeGroup>

This will not give you as much information as USER\_VIEW but will give you a quick summary of your users.

## Creating a new User

You can create a new user by running the below statement in a new worksheet

<CodeGroup>
  ```sql sql theme={null}
  CREATE USER <user_name> PASSWORD = '<password_here>' DEFAULT_ROLE = <NameOfROLE> MUST_CHANGE_PASSWORD = TRUE;
  ```
</CodeGroup>

## Creating a new Role

You can create a new role by running the below statement in a new worksheet

<CodeGroup>
  ```sql sql theme={null}
  CREATE ROLE <ROLE_NAME>;
  ```
</CodeGroup>

## Creating a new User and assigning it to a new Role

You can create a new user and assign it to a new role by running the below statement in a new worksheet

<CodeGroup>
  ```sql sql theme={null}
  CREATE ROLE <YOURNEWROLE>;
  CREATE USER <user_name> PASSWORD = '<password_here>' DEFAULT_ROLE = <YOURNEWROLE> MUST_CHANGE_PASSWORD = TRUE;
  GRANT ROLE <YOURNEWROLE> TO USER <user_name>;
  GRANT SELECT to all tables in schema your_table_name.your_schema_name to role <YOURNEWROLE>;
  ```
</CodeGroup>

<Info>
  * You only have to create a ROLE once, then you can assign it to other users

  * New Roles created will only have permissions to read and query the data

  * You can assign the existing USERADMIN roles to other users you create but you will be granting them permission to:

    * Create users
    * Create new roles
    * Create tables
</Info>

## Granting a Role to an Existing User

You can grant an existing role to an existing user by

<CodeGroup>
  ```sql sql theme={null}
  GRANT ROLE <YOURROLE> TO USER <user_name>;
  ```
</CodeGroup>

## Disable a User's access

Please reach out to [Elation Support Portal](/articles/support-portal-introduction) to disable a user's access with the subject line HDB - \<Disable user's access> along with the username and email.

***

*If you have any questions about this topic please reach out to [Elation Support Portal](/articles/support-portal-introduction) with the subject line HDB - \<your\_question>*
