---
title: Manage Databricks users
description: Add, update, and remove users in Databricks as an account or workspace admin. Manage workspace assignments and administrator permissions.
canonical_url: https://docs.databricks.com/aws/en/admin/users-groups/users
---

# Manage Databricks users

Account admins and workspace admins can add, update, and remove Databricks users. Use the account console or workspace admin settings to manage users and their workspace access.

For an overview of the Databricks identity model, see [Databricks identities](https://docs.databricks.com/aws/en/admin/users-groups/index.md#identity-model).

To manage access for users, see [Authentication and access control](https://docs.databricks.com/aws/en/security/auth/index.md).

> [!NOTE]
>
> When identity attributes are enabled for your account, each user's detail page in the account console includes a read-only **Identity attributes** tab. Identity attributes are in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). See [Identity attributes](https://docs.databricks.com/aws/en/admin/users-groups/identity-attributes/index.md).

> [!NOTE]
>
> This page assumes your workspace has identity federation enabled, which is the default for most workspaces. For information about legacy workspaces without identity federation, see [Legacy workspaces without identity federation](https://docs.databricks.com/aws/en/admin/users-groups/index.md#legacy-non-federated-workspaces).

## Who can manage users?

To manage users in Databricks, you must be either an *account admin* or a *workspace admin*.

* **Account admins** can add users to the account and assign them admin roles. They can also assign users to workspaces and configure data access for them across workspaces.
* **Workspace admins** can add users to a Databricks workspace, assign them the workspace admin role, and manage access to objects and functionality in the workspace, such as the ability to create clusters or access specified persona-based environments. Adding a user to a Databricks workspace also adds them to the account.

  Workspace admins are members of the `admins` [group](https://docs.databricks.com/aws/en/admin/users-groups/groups.md) in the workspace, which is a reserved group that cannot be deleted.

## Sync users to your Databricks account from an identity provider

You can sync users from an identity provider (IdP) to your Databricks account using automatic identity management or a SCIM provisioning connector.

**Automatic identity management** enables you to add users, service principals, and groups from your identity provider into Databricks. Databricks uses your identity provider as the source of record, so any changes to users or group memberships are respected in Databricks. For details, see [Automatic identity management](https://docs.databricks.com/aws/en/admin/users-groups/automatic-identity-management/index.md).

**SCIM provisioning** enables you to sync users from an identity provider to your Databricks account. For instructions, see [Sync users and groups to your Databricks account](https://docs.databricks.com/aws/en/admin/users-groups/scim/index.md#provision-account).

## <a id="add-user-account" /> Add users to your account

> [!NOTE]
>
> A newly added user might take a short time to appear in search results on the workspace admin **Users** page. The delay affects search visibility only. It does not affect the user's access, and they appear in the full user list right away.

### Account console

Account admins can add users to a Databricks account using the account console. Use this method when you want to add a user directly to an account without giving immediate access to any workspace. A user can't belong to more than 50 Databricks accounts.

1. Log in to the [account console](https://accounts.cloud.databricks.com).
2. In the sidebar, click **User management**.
3. On the **Users** tab, click **Add User**.
4. Enter a name and email address for the user.
5. Click **Add user**.

After you add the user, you must separately assign them access to the workspace, data, and compute resources as needed.

### Workspace admin settings

Use this method to add a new user directly to a specific workspace. Adding a user to a workspace also adds them to the corresponding Databricks account.

1. As a workspace admin, log in to the Databricks workspace.
2. Click your username in the top bar of the Databricks workspace and select **Settings**.
3. Click on the **Identity and access** tab.
4. Next to **Users**, click **Manage**.
5. Click **Add user**.
6. Click **Add new**.
7. Enter an email address for the user.
8. Click **Add**.

Databricks sends a confirmation email to the user. They should receive the email within five minutes.

## <a id="account-admin" />Assign account admin roles to a user

> [!NOTE]
>
> The **User** details page only displays roles that are directly assigned to the user. Roles inherited through group membership are active but their toggles are not shown as enabled in the UI.

1. As an account admin, log in to the [account console](https://accounts.cloud.databricks.com).
2. In the sidebar, click **User management**.
3. Find and click the username.
4. On the **Roles** tab, select one or more roles.

> [!NOTE]
>
> The user who originally set up the Databricks account is automatically assigned an account owner role in the background. Account owners have the same permissions as account admins except their account admin role cannot be removed. You will see a permissions denied error if you try to remove this user's account admin role.
>
> If you need to remove this user's account admin role, contact Databricks support to help you transfer the account owner role to a different user in your account.

## <a id="assign-workspace" />Assign a user to a workspace

Account admins and workspace admins can assign service principals to a Databricks workspace using the account console or the workspace admin settings page.

### Account console

1. As an account admin, log in to the [account console](https://accounts.cloud.databricks.com).
2. In the sidebar, click **Workspaces**.
3. Click your workspace name.
4. On the **Permissions** tab, click **Add permissions**.
5. Search for and select the user, assign workspace entitlements, and click **Save**.

### Workspace admin settings

1. As a workspace admin, log in to the Databricks workspace.
2. Click your username in the top bar of the Databricks workspace and select **Settings**.
3. Click on the **Identity and access** tab.
4. Next to **Users**, click **Manage**.
5. Click **Add User**.
6. Select an existing user to assign to the workspace or click **Add new** to create a new user.
7. Select entitlements for the user.
8. Click **Add**.

## <a id="remove-user-workspace" />Remove a user from a workspace

When you remove a user from a workspace, the user loses the access that comes from that direct assignment. Access inherited through a group is unchanged. A user with no direct or inherited workspace assignment can still enter by assuming a role assigned to that workspace, if they have permission to assume it. See [When you must assume a role to enter a workspace](https://docs.databricks.com/aws/en/security/auth/rbac/switch-roles.md#enforced-role-assumption).

Removing the user from the workspace does not revoke their permission grants on objects. If you assign the user to the workspace again, they can use those grants again there.

### Account console

1. As an account admin, log in to the [account console](https://accounts.cloud.databricks.com).
2. In the sidebar, click **Workspaces**.
3. Click your workspace name.
4. On the **Permissions** tab, find the user.
5. Click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu at the far right of the user row and select **Remove**.
6. On the confirmation dialog, click **Remove**.

### Workspace admin settings

1. As a workspace admin, log in to the Databricks workspace.
2. Click your username in the top bar of the Databricks workspace and select **Settings**.
3. Click on the **Identity and access** tab.
4. Next to **Users**, click **Manage**.
5. Find the user and ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu at the far right of the user row and select **Remove**.
6. Click **Delete** to confirm.

## <a id="workspace-admin" />Assign the workspace admin role to a user

1. As a workspace admin, log in to the Databricks workspace.
2. Click your username in the top bar of the Databricks workspace and select **Settings**.
3. Click on the **Identity and access** tab.
4. Next to **Users**, click **Manage**.
5. Select the user.
6. Under **Entitlements**, turn on **Admin access**.

To remove the workspace admin role from a workspace user, perform the same steps, but clear the **Admin access** toggle.

To give users workspace admin access only when they need it, instead of all the time, see [Tutorial: Use an RBAC role for workspace administration](https://docs.databricks.com/aws/en/security/auth/rbac/use-role-for-admin-tasks.md).

## <a id="deactivate" />Deactivate a user

You can deactivate a user at either the account or workspace level.

Account admins can deactivate users across a Databricks account. Deactivation prevents the user from authenticating and accessing the account, workspaces, or Databricks APIs, but does not remove its permissions or objects. This is preferable to removal, which is a destructive action.

Effects of deactivation:

* The user cannot authenticate or access the Databricks UI or APIs.
* Applications or scripts that use the tokens generated by the user are no longer able to access the Databricks API. The tokens remain but cannot be used to authenticate while a user is deactivated.
* Compute resources owned by the user remain running.
* Scheduled jobs created by the user fail unless they are assigned to a new owner.

When reactivated, the user regains access with the same permissions.

### Account level deactivation

Account admins can deactivate a user across the a Databricks account. When a user is deactivated at the account-level they cannot authenticate to the Databricks account or to any workspaces in the account.

You cannot deactivate a user using the account console. Instead, use the [Account Users API](https://docs.databricks.com/aws/en/reference/scim-2-1.md). For example:

```bash
curl --netrc -X PATCH \
https://${DATABRICKS_HOST}/api/2.1/accounts/{account_id}/scim/v2/Users/{id} \
--header 'Content-type: application/scim+json' \
--data @update-user.json \
| jq .
```

`update-user.json`:

```json
{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
  "Operations": [
    {
      "op": "replace",
      "path": "active",
      "value": [
        {
          "value": "false"
        }
      ]
    }
  ]
}
```

### Workspace level deactivation

When a user is deactivated at the workspace-level, they cannot authenticate to that specific workspace, but they can still authenticate to the account and other workspaces in the account.

You cannot deactivate a user using the workspace admin settings page. Instead, use the [Workspace Users API](https://docs.databricks.com/api/workspace/users/patch). For example:

```bash
curl --netrc -X PATCH \
https://<databricks-instance>/api/2.0/preview/scim/v2/Users/<user-id> \
--header 'Content-type: application/scim+json' \
--data @update-user.json \
| jq .
```

`update-user.json`:

```json
{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
  "Operations": [
    {
      "op": "replace",
      "path": "active",
      "value": [
        {
          "value": "false"
        }
      ]
    }
  ]
}
```

### <a id="remove-user" />Remove users from your Databricks account

Account admins can delete users from a Databricks account. Workspace admins cannot. When you delete a user from the account, that user is also removed from their workspaces. If you remove a user using the account console, you must ensure that you also remove the user using any SCIM provisioning connectors or SCIM API applications that have been set up for the account. If you don't, SCIM provisioning adds the user back the next time it syncs. See [Sync users and groups from your identity provider using SCIM](https://docs.databricks.com/aws/en/admin/users-groups/scim/index.md).

> [!IMPORTANT]
>
> When you remove a user from the account, that user is also removed from their workspaces, regardless of whether or not identity federation has been enabled. We recommend that you refrain from deleting account-level users unless you want them to lose access to all workspaces in the account. Be aware of the following consequences of deleting users:
>
> * Applications or scripts that use the tokens generated by the user can no longer access Databricks APIs.
> * Jobs owned by the user fail.
> * Clusters owned by the user stop.
> * Libraries installed by that user are invalid and must be reinstalled.
> * Queries or dashboards created by the user and shared using the Run as Owner credential have to be assigned to a new owner to prevent sharing from failing.

When a user is removed from an account, the user can no longer access the account or their workspaces, however permissions are maintained on the user. If the user is added back to the account within 90 days, they regain their previous permissions.

To remove a user using the account console, do the following:

1. As an account admin, log in to the account console.
2. In the sidebar, click **User management**.
3. Find and click the username.
4. On the **User Information** tab, click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu in the upper-right corner and select **Delete**.
5. On the confirmation dialog, click **Confirm delete**.

> [!NOTE]
>
> When automatic identity management is enabled, users from your identity provider are visible in the account console. Their status is displayed as **Inactive: No usage** and they cannot be removed from the users list. They are not active in the account and they don't count against users limits.

## <a id="manage-users-api" />Manage users using the API

Account admins and workspace admins can manage users in the Databricks account and workspaces using Databricks APIs.

### <a id="manage-users-account-api" />Manage users in the account using the API

Admins can add and manage users in the Databricks account using the Account Users API. Account admins and workspace admins invoke the API using a different endpoint URL:

* Account admins use `{account-domain}/api/2.1/accounts/{account_id}/scim/v2/`.
* Workspace admins use `{workspace-domain}/api/2.0/account/scim/v2/`.

For details, see the [Account Users API](https://docs.databricks.com/aws/en/reference/scim-2-1.md).

### Manage users in the workspace using the API

Account and workspace admins can use the Workspace Assignment API to assign users to workspaces. The Workspace Assignment API is supported through the Databricks account and workspaces.

* Account admins use `{account-domain}/api/2.0/accounts/{account_id}/workspaces/{workspace_id}/permissionassignments`.
* Workspace admins use `{workspace-domain}/api/2.0/preview/permissionassignments/principals/{user_id}`.

See [Workspace Assignment API](https://docs.databricks.com/api/account/workspaceassignment).

> [!NOTE]
>
> For legacy workspaces without identity federation, workspace admins can use the [Workspace Users API](https://docs.databricks.com/api/workspace/users) to assign users to their workspaces.
