# DataImportManagementSettings in SFDX

> DataImportManagementSettings controls org-wide policies for the Data Import Wizard, standard matching rules, and user self-service data import permissions.

- Source: https://sfdxtalk.com/docs/metadata/data-import-management-settings-metadata-type/
- Category: Metadata
- Applies to: Salesforce Winter '27 (API version 68.0)
- Level: intermediate
- Published: 2026-11-12
- Last updated: 2026-11-12
- Publisher: SFDX Talk Editorial (unofficial; not affiliated with or endorsed by Salesforce)
- License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

## Architectural Overview

The `DataImportManagementSettings` metadata type represents organization-wide settings for the native **Salesforce Data Import Wizard** and user-facing bulk data management utilities. While enterprise data operations typically utilize ETL tools, Bulk API 2.0, or MuleSoft, the Data Import Wizard remains an important self-service tool for business users importing Accounts, Contacts, Leads, Solutions, and [CustomObject](/docs/metadata/custom-object-metadata-type/) records.

`DataImportManagementSettings` controls whether end users can execute self-service imports, enforces deduplication matching rules during ingestion, and manages automated assignment rules (such as Lead and Case routing). Architecting these settings ensures data governance, prevents mass duplicate creation, and standardizes import behavior across scratch orgs, sandboxes, and production.

```mermaid
flowchart TD
    A["DataImportManagement.settings-meta.xml"] --> B["enableDataImportWizard"]
    A --> C["enableMatchingRules"]
    A --> D["enableUserSelfServiceImport"]
    B --> E["Data Import Wizard Access"]
    C --> F["Duplicate Detection Enforcement"]
    D --> G["Business User Ingestion Guardrails"]
```

## Directory and File Conventions

In SFDX source format, `DataImportManagementSettings` is grouped within the `settings/` directory:

| Property | Value |
| :--- | :--- |
| **Metadata Type Name** | `Settings` (member: `DataImportManagement`) / `DataImportManagementSettings` |
| **SFDX Source Directory** | `force-app/main/default/settings/` |
| **File Name** | `DataImportManagement.settings-meta.xml` |
| **Manifest Member Name** | `<members>DataImportManagement</members><name>Settings</name>` |

## Key Metadata Fields

| Field Name | Type | Required | Architectural Guidance |
| :--- | :--- | :--- | :--- |
| `enableDataImportWizard` | `boolean` | No | Enables the Data Import Wizard interface in Setup for administrative and delegated users. |
| `enableMatchingRules` | `boolean` | No | Enforces matching rules (by Name, Email, or External ID) to prevent duplicate record insertion during imports. |
| `enableUserImport` | `boolean` | No | Permits non-administrator users with appropriate permissions to initiate self-service personal imports. |

## Declarative XML and Manifest Examples

### Source Format XML (`DataImportManagement.settings-meta.xml`)

```xml title="force-app/main/default/settings/DataImportManagement.settings-meta.xml"
<?xml version="1.0" encoding="UTF-8"?>
<DataImportManagementSettings xmlns="http://soap.sforce.com/2006/04/metadata">
    <enableDataImportWizard>true</enableDataImportWizard>
    <enableMatchingRules>true</enableMatchingRules>
    <enableUserImport>false</enableUserImport>
</DataImportManagementSettings>
```

### Manifest (`package.xml`)

```xml title="manifest/package.xml"
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>DataImportManagement</members>
        <name>Settings</name>
    </types>
    <version>68.0</version>
</Package>
```

## Retrieval and Deployment Commands

Use the Salesforce CLI to retrieve and deploy `DataImportManagementSettings`:

```bash
# Retrieve DataImportManagement settings from an org
sf project retrieve start --metadata Settings:DataImportManagement

# Deploy DataImportManagement settings to an environment
sf project deploy start --metadata Settings:DataImportManagement
```

## Senior Architect Best Practices and Gotchas

- **Data Governance Strategy:** In regulated environments (finance, healthcare, defense), enterprise architects frequently set `enableUserImport` to `false` via this metadata type, channeling all data loads through vetted ETL pipelines and staging validation engines.
- **Pair with Duplicate Rules:** While `enableMatchingRules` controls wizard-level matching, ensure comprehensive Duplicate Rules and Matching Rules are deployed to provide consistent deduplication across both UI wizards and API integrations.
- **Permission Dependencies:** Enabling wizard features org-wide still requires granting users the `Import Personal Records` administrative permission via a [PermissionSet](/docs/metadata/permission-set-metadata-type/) or [Profile](/docs/metadata/profile-metadata-type/).

> [!NOTE]
> Modifying `DataImportManagementSettings` applies org-wide immediately upon deployment without requiring scheduled maintenance downtime.

## Frequently Asked Questions

### What is the function of DataImportManagementSettings?

It governs permissions, matching rules, and feature flags for the Salesforce native Data Import Wizard across standard and custom objects.

### Where is DataImportManagementSettings located in an SFDX repo?

It resides in force-app/main/default/settings/ under the file name DataImportManagement.settings-meta.xml.

### Can non-administrative users import data when enabled here?

Yes, provided users also hold object create permissions and the Import Personal Records profile or permission set permission.

### How do you retrieve DataImportManagementSettings via the CLI?

Execute sf project retrieve start with the metadata flag Settings:DataImportManagement.

## Official References

- https://developer.salesforce.com/docs/platform/api-metadata/references/meta-types/metadata-dataimportmanagementsettings.md
