Manage users and roles

In Firebolt, an organization can have multiple accounts, each serving as a separate workspace for managing resources and data. Within each account, users are created to control access, with their identities defined through logins or service accounts. Logins are associated with individual human users, each authenticated by unique credentials, allowing them to interact directly with Firebolt’s resources according to assigned roles. Service accounts provide programmatic access for applications and automated processes within the account, such as data pipelines or monitoring tools. Each login and service account is linked to specific roles, which define their permissions, ensuring that access is managed efficiently and securely across the organization.

Icon for a Firebolt login for human access. Logins

A login in Firebolt represents a human user and is associated with an individual’s credentials, identified by an email address. Logins are tied to user roles, which define what the individual can access or modify. A login is primarily used for human authentication and allows a user to access the platform, run queries, and interact with databases and other resources. For instance, a login object might be created for a specific person such as kate@acme.com, and this login is linked to roles that control permissions.

Icon for a Firebolt service account for programmatic access. Service accounts

A service account represents a machine or application rather than a human user. It allows automated processes to authenticate and interact with Firebolt resources. A service account is used for programmatic access, such as in pipelines, monitoring systems, application data access, and scheduled queries. Service accounts are associated with roles just like logins but are designed to operate without human intervention. For example, a service account might be used for a data pipeline that regularly ingests data into Firebolt. Each service account must be associated with a user. For more information about how to create and manage service accounts, see Manage programmatic access to Firebolt.

Icon for a Firebolt user. Users

A user is a distinct identity that interacts with the Firebolt platform. Each user is assigned specific roles, which determine what actions they can perform and which resources they can access. Users are essential for controlling access in Firebolt and are managed through role-based access control (RBAC). Users authenticate via logins or service accounts, depending on whether they are human users or machine-based processes.

A user must be associated with either a login or a service account, as follows:

A user must be associated with either a login or a service account.

There can be multiple users per login or service account. Users are managed at the account level, as shown in the following diagram:

There can be multiple users per login, for human access, or per service account, for programmatic access

You can add, edit or delete users using SQL in the Develop Space or using the user interface (UI) in the Configure Space.

Managing roles requires the account_admin role. For more information about roles, see the Roles section in Organizations and accounts, and the Account section of Manage role-based access control that specifies permissions for CREATE USER.

Topics

Set up a new user

To set up a new user, complete the following steps:

  1. Create a new login or service account. The following section provides information about creating a new login, for human access to Firebolt. If you want to set up a new user for programmatic access, see Create a service account.
  2. Create a new user.
  3. Link the user with a login or a service account.
  4. Create a role.
  5. Assign the role to the user.

The following sections guide you through the previous steps.

Set up a new user for programmatic access

To set up a new user for programmatic access, first set up a service account.

To set up a user for programmatic access, create a service account, and then complete the steps in the following sections to create a user, link the user to a service account, create a role, and assign the role to the user.

Set up a new user for human access

Create a login

To set up a user for human access, first create a login.

A login is an email that is used for authentication. A login can be associated with multiple accounts. When you set up a new user, you must create either a login or service account for them. Create a login if you want to associate a user with human access to Firebolt. Create a service account for programmatic access. You will link the user to either a login or a service account.

Create a login using the UI

Login to Firebolt’s Workspace. If you haven’t yet registered with Firebolt, see the Get Started guide. If you encounter any issues, reach out to support@firebolt.io for help. Then, do the following:

  1. Select the Configure icon (The Firebolt Configure Space icon.) in the left navigation pane to open the Configure Space.
  2. Select Logins.
  3. Select Create Login.
  4. In the Create login window that pops up, enter the following:

    1. First Name - The first name of the user.
    2. Last Name - The last name of the user.
    3. Login Name - The email address of the user.
  5. Select a network policy from the drop-down list. You can choose Default or create your own. The default network policy accepts traffic from any IP address. For more about network policies, including how to create a new policy, see Manage network policies.
  6. Toggle the following options on or off to select the following:

    1. Is password enabled - Toggle on to require authentication using a password.
    2. Is MFA enabled - Toggle on to require authentication using multi-factor authentication (MFA).
    3. Is organization admin - Toggle on to grant that login permissions associated with an Organization Admin. A user must have organization administrative privileges to manage logins and service accounts. For more information about organization administrative privileges and other roles, see the Roles section in Organizations and accounts.
  7. Select Create.
Create a login using SQL

Login to Firebolt’s Workspace. If you haven’t yet registered with Firebolt, see the Get Started guide. If you encounter any issues, reach out to support@firebolt.io for help. Then, do the following:

  1. Select the Develop icon (The Firebolt Develop Space icon).

    By default, when you login to Firebolt’s Workspace for the first time, Firebolt creates a tab in the Develop Space called Script 1. The following apply:

    • The database that Script 1 will use is located directly below the tab name. If you want to change the database, select another database from the drop-down list.

    • An engine must be running to process the script in a selected tab. The name and status of the engine that Script 1 uses for computation is located to the right of the current selected database. If the engine has auto-start set to TRUE, it will start from a stopped state. For more information about auto-start, see Immediately Starting or Automatically Stopping an Engine.

  2. Select system from the drop-down arrow next to the engine name. The system engine is always running, and you can use it to create a login. You can also use an engine that you create.
  3. Use the syntax in the following example code to create a login in the SQL Script Editor:

     CREATE LOGIN <login_name>
     WITH FIRST_NAME = <first_name>, 
     LAST_NAME = <last_name>;
    

Create a user

To set up a new user, after you create a login, create a user.

After you create a login, the next step is to create a user.

Create a user using the UI
  1. Select the Govern icon (The Firebolt Govern Space icon.) in the left navigation pane to open the Govern Space.
  2. Select Users from the left sub-menu bar.
  3. Select the + Create User button at the top right of the Govern Space.
  4. In the Create User window, enter the following:

    1. User Name - The name of the user to associate with the login. This name can be any string, excluding spaces, and special characters such as exclamation points (!), percent signs (%), at sign(@), dot sign (.), underscore sign (_), minus sign (-), and asterisks (*).
    2. Default Database - (Optional) The name of the database that is associated with the user.
    3. Default Engine - (Optional) The name of the engine that is associated with the user.
  5. Toggle the radio button next to Associate a login.
  6. Select the name of the login to associate with the user from the drop-down list under Login Associated. This drop-down list contains only logins that are not already assigned to a user in the current account.
  7. (Optional) Choose the role you want to assign to the user. If no role is specified, the user is automatically granted a public role. For more information about roles, see the Roles section in Organization and accounts.
  8. Select Save.
Create a user using SQL

Use the syntax in the following example code and the CREATE USER statement to create a user in the SQL Script Editor in the Develop Space:

CREATE USER <my_user>;

You can also create a user and link it to a login simultaneously as shown in the following code example:

CREATE USER <my_user> WITH LOGIN = <my_login>;

Create a user and link it to a service account at the same time as shown in the following code example:

CREATE USER <my_user> WITH SERVICE_ACCOUNT=<my_service_account>

To set up a new user, after you create a user, link it to the login or service account.

If the user wasn’t associated with a login or service account when they were created, you must link them.

  1. Select the Govern icon (The Firebolt Govern Space icon) in the left navigation pane to open the Govern Space.
  2. Select Users from the left sub-menu bar.
  3. Select the three horizontal dots (…) to the right of the user that you need to link to a login.
  4. Select Edit user details.
  5. If you want to link the user to a login for human access, select Login from the drop-down list next to Assign to. If you want to link the user to a service account for programmatic access, select Service Account from the drop-down list next to Assign to.
  6. If you want to link the user to a login for human access, select the name of the login to associate with the user from the drop-down list under Login name. If you want to link the user to a service account for programmatic access, select a name from the drop-down list next to Service account name. This drop-down list contains only login accounts that are not already assigned to a user in the current account.
  7. Select Save.

Use the syntax in the following example code and the ALTER_USER statement to link a user to a login in the SQL Script Editor in the Develop Space:

ALTER USER <my_user> SET LOGIN = <login_name>;

The following code links a user to a service account:

ALTER USER <user_name> SET SERVICE_ACCOUNT = <service_account_name>

Create a role

To set up a new user, after you link the user, create a role.

If you don’t already have a role that you want to assign to a user, you can create a role to define what actions users can perform. For more information, see Roles.

Create a role using the UI
  1. Select the Govern icon (The Firebolt Govern Space icon.) in the left navigation pane to open the Govern Space.
  2. Select Roles from the left sub-menu bar.
  3. Select the + New Role button at the top right of the Govern Space.
  4. In the left sub-menu bar, enter the following:

    1. Role name - The name of the role that you want to create. You can use this role to grant privileges for more than one user.
  5. Select Databases in the left sub-menu bar, and select the following in Database privileges:

    1. Create database - Toggle on to allow the user to create any database in the account.
    2. Modify any database - Toggle on to allow the user to modify any database in the account, or keep the option off to select the specific database the user can modify.
    3. Usage any database - Toggle on to allow the user to use any database in the account, or keep the option off to select the specific database the user can use.
    4. If you didn’t specify using or modifying all databases, select the checkbox next to the specific database that you want to grant the user access to modify or use.
  6. Select Engines in the left sub-menu bar, and select the following in Engine privileges:

    1. Create engine - Toggle on to allow the user to create any engine in the account.
    2. Modify any engine - Toggle on to allow the user to modify any engine in the account, or keep the option off to select the specific engine the user can modify.
    3. Operate any engine - Toggle on to allow the user to stop or start any engine in the account, or keep the option off to select the specific engine the user can start or stop. Any running engine that is not the system engine accumulates usage costs.
    4. Usage any engine - Toggle on to allow the user to use any engine in the account, or keep the option off to select the specific engine the user can use.
  7. Select Create.
Create a role using SQL

Use the syntax in the following example code and the CREATE ROLE and GRANT statements to create a role in the SQL Script Editor in the Develop Space:

CREATE ROLE <my_role>;

Use the following code to grant engine access to a role:

GRANT USAGE ON ENGINE <engine_name> TO <role_name>

Use the following code example to grant a role permission to modify a database:

GRANT MODIFY ON DATABASE <database_name> TO <role_name>

Use the following code example to grant a role permission to create objects inside the public schema:

GRANT CREATE ON SCHEMA public TO <role_name>

Use the following code to grant a role permission to access the public schema in a database:

GRANT USAGE ON SCHEMA public TO <role_name>

Use the following code example to grant a role permission to read data from a specified table:

GRANT SELECT ON TABLE <table_name> TO <role_name>

For more information about role-based access, see Manage role-based access control.

Assign a role to a user

To set up a new user, after creating a role, assign it to a user.

You can assign a new role to the user or change the role assigned to the user from the default public role to grant them specific permissions. A user can have multiple roles.

Assign a role using the UI
  1. Select the Govern icon (The Firebolt Govern Space icon.) in the left navigation pane to open the Govern Space.
  2. Select Users from the left sub-menu bar.
  3. Select the three horizontal dots (…) to the right of the user that you need to link to a login.
  4. Select Edit user details.
  5. Select the checkbox next to the role that you want to assign to the user from the list under Assign Roles.
  6. Select Save.
Assign a role using SQL

Use the syntax in the following example code and the GRANT statement to assign a role in the SQL Script Editor in the Develop Space:

GRANT <my_role> TO USER <my_user>;

You can use GRANT to assign a role to another role as follows:

GRANT <some_role> TO ROLE <another_role>

Edit an existing user

You can alter a user’s name, login or service account that they are associated with, their default database, and engine.

Edit a user using the UI

  1. Select the Govern icon (The Firebolt Govern Space icon.) in the left navigation pane to open the Govern Space.
  2. Select Users from the left sub-menu bar.
  3. Select the three horizontal dots (…) to the right of the user that you need to edit.
  4. Select Edit user details.
  5. Edit the desired fields.
  6. Select Save.

Edit a user using SQL

Use the ALTER USER statement to change a user’s information in the SQL Script Editor in the Develop Space.

The following code example changes a user’s name:

ALTER USER "alex" RENAME TO "alexs";

The following code example changes a user’s login:

ALTER USER alex SET LOGIN="alexs@acme.com";

Deleting an existing user

You can delete a user using either the UI or with SQL. The delete operation is irreversible.

Delete a user using the UI

  1. Select Users from the left sub-menu bar.
  2. Select the three horizontal dots (…) to the right of the user that you need to delete.
  3. Select Delete user.
  4. Select Confirm to delete the user. This operation is irreversible.

Delete a user using SQL

Use the syntax in the following example code and the the DROP USER statement to delete an existing user in the SQL Script Editor in the Develop Space:

DROP USER "alex";