---
title: Manage instance profiles in Databricks
description: Learn how to manage access to instance profiles in your Databricks workspace.
canonical_url: https://docs.databricks.com/aws/en/admin/workspace-settings/manage-instance-profiles
---

# Manage instance profiles in Databricks

This article explains how to manage access and update instance profiles in Databricks.

## Manage access to instance profiles

Users with permissions to deploy clusters can deploy clusters with any of their assigned instance profiles. All users with access to the cluster gain the permissions as defined by the instance profile. See [Instance profiles](https://docs.databricks.com/aws/en/compute/configure.md#instance-profiles).

SQL warehouses use a single instance profile for each workspace. See [Data access configurations](https://docs.databricks.com/aws/en/admin/sql/data-access-configuration.md). You can then use Hive metastore table access control for fine-grained permissions.

> [!NOTE]
>
> Hive metastore table access control is a legacy data governance model. Databricks recommends that you use Unity Catalog instead for its simplicity and account-centered governance model. You can [upgrade the tables managed by the Hive metastore to the Unity Catalog metastore](https://docs.databricks.com/aws/en/data-governance/unity-catalog/migrate.md).

### Manage access to instance profiles using the admin settings page

1. As a workspace admin, go to the [settings page](https://docs.databricks.com/aws/en/admin/admin-concepts.md#admin-settings).

2. In the left pane, click the **Security** tab.

3. Click **Manage** next to **Instance profiles**.

4. Select the instance profile you want to update.

5. In the dropdown below the instance profile details, select or enter the user, group, or service principal:

   ![Add users](https://docs.databricks.com/aws/en/images/clusters/instance-profiles/add-permissions.png)

6. Click **Add**.

Alternatively, you can assign the instance profiles directly to groups:

1. As a workspace admin, go to the [settings page](https://docs.databricks.com/aws/en/admin/admin-concepts.md#admin-settings).
2. Click the **Identity and access** tab.
3. Next to **Groups**, click **Manage**.
4. Select the group you want to update.
5. On the **Instance Profiles** tab, click **+ Add Instance Profiles to group**.
6. On the **Add Instance Profiles** dialog, click the down arrow to display a drop-down list of instance profiles, and select the ones you want to add.
7. Click the down arrow to hide the drop-down list.
8. Click **Add**.

### Manage access to instance profiles using the API

Workspace admins can manage access to instance profiles using workspace-level SCIM APIs for users, service principals, and groups.

For example, to grant a group access to an instance profile, use the following pattern:

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

`update-group.json`:

```json
{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
  "Operations": [
    {
      "op": "add",
      "path": "roles",
      "value": "<instance-profile-role-arn>"
    }
  ]
}
```

Replace:

* `<group-id>` with the ID of the group.
* `<instance-profile-role-arn>` with the Amazon Resource Name (ARN) of the instance profile role, for example `arn:aws:iam::123456789012:instance-profile/my-role`.

For the full API references, see [Workspace Groups API](https://docs.databricks.com/api/workspace/groups), [Workspace Users API](https://docs.databricks.com/api/workspace/users), and [Workspace Service Principals API](https://docs.databricks.com/api/workspace/serviceprincipals).

## <a id="edit-instance-profile" />Edit instance profile role ARN

For instance profiles that you've already created, you can later edit them, but only to specify a different IAM role ARN. This step is required for Databricks SQL Serverless to work with an instance profile whose **role name** (the text after the last slash in the role ARN) and the **instance profile name** (the text after the last slash in the instance profile ARN) do not match. For related information, see [Set up serverless SQL warehouses](https://docs.databricks.com/aws/en/admin/sql/serverless.md).

1. Go to the [settings page](https://docs.databricks.com/aws/en/admin/admin-concepts.md#admin-settings).
2. In the left pane, click the **Security** tab.
3. Click **Manage** next to **Instance profiles**.
4. Click the name of your instance profile that you want to edit.
5. Click the ![Edit icon](https://docs.databricks.com/aws/en/images/icons/pencil-edit-icon.png) edit icon next to the instance profile name.
6. In the **IAM role ARN** field, paste in the role ARN associated with your instance profile. As an admin, you can get this value from the AWS console.
7. Click **Edit**.
