# Manage Sensitive Data Discovery

{% hint style="info" %}
In previous documentation, rule is referred to as classifier or identifier and framework is referred to as template.
{% endhint %}

## Command overview: `immuta sdd`

This command allows you to customize and run SDD in your instance of Immuta. The table below illustrates subcommands and arguments.

| Subcommands                                                                                            | Description                                           |
| ------------------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
| [`classifier`](/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery/classifiers.md) | Manage SDD rules.                                     |
| [`run`](/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery/sdd.md)                | Run SDD on specific data sources or all data sources. |
| [`template`](/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery/templates.md)     | Manage SDD frameworks.                                |

### Options

Use these options to get more details about the `sdd` command or any of its subcommands:

* `-h`
* `--help`

```bash
$ immuta sdd -h
Manage Sensitive Data Discovery

Usage:
  immuta sdd [command]

Available Commands:
  classifier  Manage Sensitive Data Discovery Classifiers
  run         Run Sensitive Data Discovery with provided options
  template    Manage Sensitive Data Discovery Templates

Flags:
  -h, --help   Help for sdd

Global Flags:
      --config string    Config file (default $HOME/.immutacfg.yaml)
  -p, --profile string   Specifies the profile for what instance/api the cli will use (default "default")

Use "immuta sdd [command] --help" for more information about a command.
```

## SDD workflow

Two common workflows for using SDD are outlined below. The first illustrates how to apply a global framework to all data sources, while the second outlines how users can create and apply frameworks to data sources they own.

The tutorials linked below show how to use the CLI to complete this workflow. For an overview of how sensitive data discovery works, see [this overview](/2024.2/discover-your-data/data-discovery.md).

### Workflow 1: Apply the global framework to all data sources

1. Data governor [creates a framework](/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery/templates.md#create-an-identification-framework) using one or more rules.
2. [System administrator adds this framework as the global framework so that it applies to all data sources](/2024.2/discover-your-data/data-discovery/how-to-guides/global-sdd.md).
3. [Users trigger SDD on data sources](/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery/sdd.md).

### Workflow 2: Apply a framework to a specific data source

1. Data governor creates one or more [rules with patterns](/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery/classifiers.md#create-a-rule).
2. [Data owner creates a framework containing one or more rules](/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery/templates.md#create-an-identification-framework).
3. [Data owner triggers SDD on one or more data sources](/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery/sdd.md) and resulting tags are applied to columns where criteria were met and patterns were recognized.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.immuta.com/2024.2/developer-guides/the-immuta-cli/manage-sensitive-data-discovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
