Warehouse Users and Roles
Use warehouse users and roles to control who can connect to a warehouse and what SQL operations they can perform.
Warehouse users and organization members
An organization member logs in to the VeloDB Cloud console with their cloud account. Their organization role determines which warehouses they can see and what they can manage. Invite people and assign organization roles in Members.
A warehouse user is a SQL identity for a person or application in one warehouse. Grant privileges directly or through warehouse SQL roles to control which data it can read or change. A BI tool can connect with just this identity.
For example, Thomas wants to query the orders table in SQL Editor. His organization role must allow him to access the warehouse in the console, and the warehouse user he connects as must have the SELECT privilege on orders.
Connect to data tools in the Console
After you select a warehouse, opening SQL Editor, Catalogs, Data Integration, Log Explorer, Workload Groups, Warmup Jobs, Sessions, Query Audit, or User & Roles can prompt you to connect to that warehouse. Check the warehouse name in the prompt, enter your SQL username in Warehouse User and its password in Warehouse Password, then click Connect. The permissions of that SQL user determine which data and actions are available.
To switch SQL identities within a warehouse, use Connect to Another User in the top bar.
Manage warehouse users
Note:
- You need the
ADMINprivilege or a global-levelGRANTprivilege to add or modify users and roles.- You need the
ADMINorGRANTprivilege at the corresponding scope to grant or revoke privileges.
A warehouse user is a SQL identity in the form 'username'@'host'. The username and host together identify a warehouse user.
Built-in warehouse users
Each warehouse includes two built-in users:
| User | Default role | Management behavior |
|---|---|---|
admin@'%' | admin | You can view its privileges and change its password, but you cannot change its default role or privileges. |
root@'%' | operator | You can view its privileges, but you cannot change its password, roles, or privileges from this page. |
You cannot delete or rename these built-in users.
Create a warehouse user
To create a warehouse user, follow these steps:
-
Log in to the VeloDB Cloud console.
-
In the upper-left corner, select the warehouse for which you want to manage users and roles.
-
In the left navigation pane, under MORE, click User & Roles.
-
Click the Users tab.
-
Click Add User. Complete the following fields:
- Username (required): enter the warehouse username.
- Host (optional): enter the source host from which the user can connect. The value is
%by default. Host matching depends on the network path that the client uses. See Host field and connection source. - Password (required): enter the password used to authenticate the user.
- Belongs to role (optional): assign one or more existing warehouse roles to the user.
- Comment (optional): add a description of the user or its purpose.
-
Click Confirm.
-
After creating the user, click the user name to grant privileges. You can grant privileges on global, data, cluster, and workload group scopes. See Manage privileges for a warehouse user or role for details.
Edit a warehouse user
To edit a warehouse user, follow these steps:
- Log in to the VeloDB Cloud console.
- In the upper-left corner, select the warehouse for which you want to manage users and roles.
- In the left navigation pane, under MORE, click User & Roles.
- Click the Users tab.
- Click the Actions menu for the user you want to edit, then click Edit. You can change the password, comment, and role assignments.
Note that you cannot change the username or host because those fields form the SQL identity. To use a different username or host, create a new user, grant the required roles and privileges, verify the new connection, and then delete the old user.
To change the password, follow these steps:
- Click the Actions menu and then click Change Password.
- Enter the new password.
- Click Confirm to save the changes.
Delete a warehouse user
To delete a warehouse user, follow these steps:
- Log in to the VeloDB Cloud console.
- In the upper-left corner, select the warehouse for which you want to manage users and roles.
- In the left navigation pane, under MORE, click User & Roles.
- Click the Users tab.
- Click the Actions menu for the user you want to delete, then click Delete.
- Confirm the deletion.
Host field and connection source
The Host field of a warehouse user controls which client hosts are allowed to connect. VeloDB Cloud compares the value of Host with the source IP address observed for each connection.
The source IP address observed by VeloDB Cloud depends on how the client connects to the warehouse. Public and private connections expose different source IP addresses.
Public connections (AWS or Azure public endpoint with NLB)
For public connections, the network load balancer (NLB) preserves the client's original public IP address. VeloDB Cloud uses this IP address for Host matching.
To restrict access to a specific client, configure the client's public IP address in the Host field.
The default value % allows connections from any client IP address.
Private connections through PrivateLink
For private connections, the network load balancer does not preserve the client's original IP address. Instead, VeloDB Cloud sees the IP address of the client's VPC endpoint. As a result, configuring the originating client's IP address in the Host field does not match the observed source IP and does not restrict access.
For private connections, keep the Host field set to % (or leave it empty) and enforce IP-based access control at the network layer using:
- VPC endpoint
- Security groups
- Other private-network controls in your own cloud environment
Manage warehouse roles
You can assign multiple roles to a warehouse user. The user inherits the privileges granted to those roles.
Note:
You cannot manage user-to-role assignments from the Roles page. Assign roles when you create or modify a warehouse user.
Built-in warehouse roles
Each warehouse includes the following protected roles:
| Role | Privileges |
|---|---|
admin | The global ADMIN privilege, which provides all Apache Doris privileges except node operations. |
admin_readonly | The global ADMIN privilege, which provides read-only access to all Apache Doris resources. |
operator | The global NODE and ADMIN privileges, which together provide all Apache Doris privileges. |
You cannot delete these roles or modify their privileges. Create a new warehouse role when you need a different privilege set.
Create a warehouse role
To create a warehouse role, follow these steps:
-
Log in to the VeloDB Cloud console.
-
In the upper-left corner, select the warehouse for which you want to manage users and roles.
-
In the left navigation pane, under MORE, click User & Roles.
-
Click the Roles tab.
-
Click Add Role. Complete the following fields:
- Role Name (required): enter the warehouse role name.
- Comment (optional): add a description of the role or its purpose.
-
Click Confirm.
-
After creating the role, click the role name to add privileges. You can grant privileges on global, data, cluster, and workload group scopes. See Manage privileges for a warehouse user or role for details.
Delete a warehouse role
To delete a warehouse role, follow these steps:
- Log in to the VeloDB Cloud console.
- In the upper-left corner, select the warehouse for which you want to manage users and roles.
- In the left navigation pane, under MORE, click User & Roles.
- Click the Roles tab.
- Click the Actions menu for the role you want to delete, then click Delete.
- Confirm the deletion.
Manage privileges for a warehouse user or role
You can grant privileges to a warehouse user directly or through a warehouse role assigned to the warehouse user. The warehouse user's effective privileges are the union of the privileges granted directly to the warehouse user and those inherited from their roles.
To manage privileges for a warehouse user or role, follow these steps:
- Log in to the VeloDB Cloud console.
- In the upper-left corner, select the warehouse for which you want to manage users and roles.
- In the left navigation pane, under MORE, click User & Roles.
- Click the Users or Roles tab, then select a user or role to open its Privileges page. You can grant or revoke privileges on global, data, cluster, and workload groups. See the following table for details.
Note:
- You must have the
ADMINprivilege or theGRANTprivilege at the corresponding scope. A user with theGRANTprivilege must also have the privilege being granted.- Privileges for built-in users and roles are read-only.
| Scope | What this scope controls |
|---|---|
| Global | Applies to the entire warehouse. A global privilege automatically includes the matching privilege on every child object. Available global privileges include NODE, ADMIN, GRANT, SELECT, LOAD, ALTER, CREATE, and DROP. |
| Data | Applies to data resources at the selected level, including Catalog, Database, Table, Materialized View, and View. A privilege granted on a parent object automatically includes the matching privilege on its child objects. |
| Cluster | Grants the USAGE privilege on a cluster for connection-level access control. |
| Workload Group | Grants the USAGE privilege on a workload group. |
See also
- Choose a connection path for public and private warehouse connections.
- Review network security controls for IP allowlists, PrivateLink, and BYOC networking.
- Learn about built-in authentication for SQL user identity and host matching details.