> ## Documentation Index
> Fetch the complete documentation index at: https://firebolt-aggregate-helm-docs-pr-5.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Learn about user permissions and how to add and remove logins in a Firebolt account.

# Manage logins

Logins are managed at the organization level and are used for authentication. Logins are a combination of a login name (email), first name, last name, and password, unless you've configured [Single Sign-On (SSO)](/managed-service/security/sso). Moreover, logins can be configured with advanced authentication properties such as [MFA](/managed-service/security/enabling-mfa) and [network policies](/managed-service/security/network-policies). Logins are linked to users at the account level, so that roles may be managed separately per account. A user must be linked to either a login or a service account for programmatic use to gain access to Firebolt. You can add, edit or delete logins using SQL or in the UI.

To view all logins, click **Configure** to open the configure space, then choose **Logins** from the menu, or query the [information\_schema.logins](/managed-service/organization/information-schema/logins) view.

<Note>
  Managing logins requires the org\_admin role.
</Note>

## Create a new login

### SQL

To create a login using SQL, use the [CREATE LOGIN](/managed-service/organization/commands/create-login) statement. For example:

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
CREATE LOGIN "alexs@acme.com" WITH FIRST_NAME = 'Alex' LAST_NAME = 'Summers';
```

### UI

To create a login via the UI:

1. Click **Configure** to open the configure space, then choose **Logins** from the menu:

<img src="https://mintcdn.com/firebolt-aggregate-helm-docs-pr-5/91cyYVSmpFFtsk0u/assets/images/loginspage.png?fit=max&auto=format&n=91cyYVSmpFFtsk0u&q=85&s=d82f13b53310ac6fdbf4bda71530f720" alt="Configure > Logins" data-og-width="3024" width="3024" data-og-height="510" height="510" data-path="assets/images/loginspage.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/firebolt-aggregate-helm-docs-pr-5/91cyYVSmpFFtsk0u/assets/images/loginspage.png?w=280&fit=max&auto=format&n=91cyYVSmpFFtsk0u&q=85&s=2dc57a731339484a369c1b9a05b910e5 280w, https://mintcdn.com/firebolt-aggregate-helm-docs-pr-5/91cyYVSmpFFtsk0u/assets/images/loginspage.png?w=560&fit=max&auto=format&n=91cyYVSmpFFtsk0u&q=85&s=60bfe53597da24fbcddf32dd2d1e59a0 560w, https://mintcdn.com/firebolt-aggregate-helm-docs-pr-5/91cyYVSmpFFtsk0u/assets/images/loginspage.png?w=840&fit=max&auto=format&n=91cyYVSmpFFtsk0u&q=85&s=ca8c806f3348433a2368499483fa28d1 840w, https://mintcdn.com/firebolt-aggregate-helm-docs-pr-5/91cyYVSmpFFtsk0u/assets/images/loginspage.png?w=1100&fit=max&auto=format&n=91cyYVSmpFFtsk0u&q=85&s=a01c633b20887df0532da741aaeb8fb2 1100w, https://mintcdn.com/firebolt-aggregate-helm-docs-pr-5/91cyYVSmpFFtsk0u/assets/images/loginspage.png?w=1650&fit=max&auto=format&n=91cyYVSmpFFtsk0u&q=85&s=6d25035a1481f5625f4b1505281d02a2 1650w, https://mintcdn.com/firebolt-aggregate-helm-docs-pr-5/91cyYVSmpFFtsk0u/assets/images/loginspage.png?w=2500&fit=max&auto=format&n=91cyYVSmpFFtsk0u&q=85&s=4bfa5e44f4f43c59ced40d9b5291bd8d 2500w" />

2. From the Logins management page, choose **Create Login**.
3. Enter the following details:
   * First name: specifies the first name of the user for the login.
   * Last name: specifies the last name of the user for the login.
   * Login name: specifies the login in the form of an email address. This must be unique within your organization.
4. Optionally, you can:
   * Associate a [network policy](/managed-service/security/network-policies) with the login by choosing a network policy name under the **Network policy attached** field.
   * Enable password login, which specifies if the login can authenticate Firebolt using a password.
   * Enable multi-factor authentication (MFA). Read more about how to configure MFA [here](/managed-service/security/enabling-mfa).
   * Set the login as **organisation admin**, which enables fully managing the organization.

## Edit an existing login

### SQL

To edit an existing login using SQL, use the [ALTER LOGIN](/managed-service/organization/commands/alter-login) statement. For example:

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
ALTER LOGIN "alexs@acme.com" SET NETWORK_POLICY = my_network_policy
```

### UI

To edit a login via the UI:

1. Click **Configure** to open the configure space, then choose **Logins** from the menu.

2. Search for the relevant login using the top search filters, or by scrolling through the list of logins. Hover over the right-most column to make the login menu appear, then choose **Edit login details**.
   Edit the desired fields and choose **Save**.

<Note>
  Login name can not be changed for logins that were provisioned via SSO.
</Note>

<img src="https://mintcdn.com/firebolt-aggregate-helm-docs-pr-5/mlXmbdJxttOpptzb/assets/images/editlogin.png?fit=max&auto=format&n=mlXmbdJxttOpptzb&q=85&s=6e2fc055926395ca4e1bda571aec6091" alt="Edit login" style={{"width": "500px"}} width="1406" height="946" data-path="assets/images/editlogin.png" />

## Deleting an existing login

### SQL

To delete an existing login using SQL, use the [DROP LOGIN](/managed-service/organization/commands/drop-login) statement. For example:

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
DROP LOGIN "alexs@acme.com";
```

### UI

To delete a login via the UI:

1. Click **Configure** to open the configure space, then choose **Logins** from the menu.

2. Search for the relevant login using the top search filters, or by scrolling through the logins list. Hover over the right-most column to make the login menu appear, then choose **Delete login**.

<Note>
  If the login is linked to any users, deletion will not be permitted. The login must be unlinked from all users before deletion.
</Note>
