# Integrating SailPoint with Xata

Xata is a branch-native PostgreSQL platform. An organization holds projects, and each project contains a database with multiple branches. People belong to an organization as members and hold one organization role, either Admin or Editor. Applications, scripts, CI pipelines, and the Xata CLI call the Xata API with API keys. A user API key belongs to the member who created it and acts with that member's role. An organization API key belongs to the organization and acts with Admin access. Both kinds of key are limited by their scopes and can be restricted to selected projects and branches. This document covers how to configure a new direct connection between SailPoint and Xata for Quick Compliance. For a reference to the terminology specific to SailPoint products, refer to [Source and Connector Definitions](<https://documentation.sailpoint.com/saas/help/sources/index.html#source-and-connector-definitions>).

> [!NOTE]
>
> To view the latest features, enhancements, and fixes for all SaaS connectors, refer to the [SaaS Release Notes](<https://community.sailpoint.com/release-notes/saas>) page.

## Supported Features

The Xata connector supports the following:

### Account Management

- Aggregate Users

> [!NOTE]
>
> User roles (`admin` or `editor`) are captured on the account in the `role` attribute. The connector does not aggregate entitlements separately.

### Non-Human Identity Discovery

- Aggregate User API Keys
- Aggregate Organization API Keys

> [!NOTE]
>
> User API keys and organization API keys are aggregated as credential resources and stay out of user account aggregation. The lists do not include key values. The user API key list returns only the keys of the member who created the API token configured on the source. User API keys of other members are not visible.

Refer to [Dataset Management](<https://documentation.sailpoint.com/connectors/quick_compliance/xata/help/datasets.html#dataset-management>) for more information.

Refer to [Discovering Potential Non-Human Accounts](<https://documentation.sailpoint.com/saas/help/agentic_fabric/nhi/non_human_accounts.html#discovering-potential-non-human-accounts>) for more information.

> [!NOTE]
>
> This connector is read-only. It supports test connection, account aggregation, and dataset aggregation for Quick Compliance. It does not create, update, rotate, or delete users or API keys.

> [!IMPORTANT]
>
> Quick Compliance connectors have the following manual aggregation limits within a 24-hour period:
>
> - **Organization Admins**: Limited to 3 manual account or entitlement aggregations per day per source. This limit is cumulative across all admins in the organization.
> - **Regular Users**: Limited to 1 manual account or entitlement aggregation per day per source.
>
> These limits ensure that individual compliance statuses are kept up to date while maintaining continuous compliance monitoring. If you need to run additional aggregations beyond these limits, contact SailPoint Support.

## Prerequisites

Before you configure the Xata connector, ensure the following requirements are met:

1. Sign in to the [Xata Console](<https://console.xata.io>) as an organization Admin.
2. Select your profile icon in the top-right corner, then select **Account settings** \> **API keys**.
3. Select **New API Key**.
4. Enter a **Name** for the key and select an **Expiration**.
5. Under **Projects &amp; Branches**, keep **All projects &amp; branches**.
6. Under **Access control**, keep full access, or select the toggle and grant at least read-only access to **Organization** and **API keys**.
7. Select **Create API key**, then copy the key and store it securely. Xata shows the key only once, when it is created.
8. Go to **Organization Settings** and copy **Organization ID**.
9. Record the following values for connector configuration:

   - **Base URL**
   - **API Token**
   - **Organization ID**

For more information, refer to the [Xata API reference](<https://xata.io/docs/api-reference>).

> [!NOTE]
>
> The linked document is not maintained by SailPoint and is subject to change without notice.

## Required Permissions

The connector authenticates with a Xata API key. It sends the key as `Authorization: Bearer <API key>`. Every request is a read-only `GET`.

With that key, the connector can:

- List the members of the organization. The key needs **Organization** read-only access (scope `org:read`).
- List user API keys of the key's owner and the organization API keys, without the key values. The key needs **API keys** read-only access (scope `keys:read`).

> [!NOTE]
>
> Listing organization API keys requires an organization Admin. A user API key acts with the role of the member who created it.
