# Override credential fields per step

import { Steps } from "@astrojs/starlight/components"

On some credentials, you can mark individual fields as **Allow step overrides**. When a service step uses that
credential, those fields appear under **Credential** in step **Settings**. Leave a field empty to keep the vault
value; set a formula to replace it for that step only. Screenshots on this page use a sample **Crowdstrike host
triage** flow.

## When to use

- You need one stored credential, but a field such as OAuth **Scope(s)** or Google **Subject** must change per step or
  per run.
- You want the vault to keep a safe default while a step injects a more specific value (for example least-privilege
  scopes).
- Prefer a **service step** from [Call native integrations](../call-native-integrations/) when the vendor operation
  exists in the catalog (for example a CrowdStrike hosts operation with a custom **Scope(s)**). Use
  [Send raw HTTP requests](../send-raw-http-requests/) only as a last resort when no native operation covers the call.
- Prefer [Look up service credentials by name at runtime](../dynamic-credential-lookup/) when the whole credential
  (not a single field) should change by name across runs.
- Prefer a second credential when the identity itself changes (different client, API key, or password).

Before you begin, confirm you can create and edit credentials in the environment. See
[Credentials](/getting-started/credentials/). Only the credential types below expose **Allow step overrides**; other
types never show the toggle.

These **Credential type** values support field overrides. Field names match the labels on the credential form:

| Credential type                       | Overridable fields                                                                  |
| ------------------------------------- | ----------------------------------------------------------------------------------- |
| **Akamai EdgeGrid**                   | **Account switch key**                                                              |
| **AWS Assume Role**                   | **Role ARN**, **Role Session Name**, **Signature AWS region**, **AWS service name** |
| **AWS Signature V4**                  | **Signature AWS region**, **AWS service name**                                      |
| **CrowdStrike**                       | **Scope(s)**                                                                        |
| **Google Cloud Service Account**      | **Scopes**, **Subject**                                                             |
| **HashiCorp Vault : AppRole**         | **Vault namespace**                                                                 |
| **IBM Cloud IAM**                     | **Region**                                                                          |
| **Logpoint**                          | **Username**, **Scope**                                                             |
| **OAuth 2.0 Client Credentials**      | **Scope(s)**, **Resource**, **Audience**                                            |
| **OAuth 2.0 Resource Owner Password** | **Scope**                                                                           |

## Guide

### Allow step overrides on a credential

Open the credential in **Environments**. For each field that should be replaceable on a step, turn on **Allow step
overrides**, then save.

1. **Open the credential.** In **Environments**, open the environment, then edit the credential you will use on the step
   (for example a **CrowdStrike** credential).

2. **Enable Allow step overrides.** Next to each eligible field from the table above (for example **Scope(s)**), turn on
   **Allow step overrides**.

   <div class="docs-screenshot-compact">

   ![Crowdstrike credential form with Scope(s) and Allow step overrides enabled](./assets/allow-step-overrides-on-credential.png)

   </div>

3. **Save the credential.** Click **Update** (or **Create** when you are still creating the credential).

### Override a field on a service step

Select the credential on a **service step** (a native Integrations operation). Opted-in fields appear under
**Credential**. Empty means “use the vault value”; a formula replaces it for that step.

1. **Select the service step.** On the canvas, select the native Integrations step that should use the credential (for
   example a CrowdStrike hosts operation). Do not use **HTTP Request** when that catalog operation exists.

2. **Open Settings and pick the credential.** In the step inspector **Settings**, choose the credential you opted in.

3. **Set the override field (or leave it empty).** Under **Credential**, fill the opted-in field with a constant or a
   formula. Leave it empty to keep the vault default. The vault value appears as a placeholder when it is not empty.

   <div class="docs-screenshot-compact">

   ![Detect hosts Settings: Crowdstrike credential selected with Scope(s) override formula under Credential](./assets/step-credential-field-override.png)

   </div>

4. **Save the changes.** Save the flow when Studio prompts you to persist step settings.

## Example

A SOC flow **Crowdstrike host triage** reuses one Crowdstrike credential. The credential owner enables **Allow step
overrides** on **Scope(s)** and stores a broad default scope in the vault. The **Detect hosts** CrowdStrike service
step leaves the override empty so it uses that default. The **List devices** service step sets a narrower scope formula
for least privilege.

1. **Create the Crowdstrike credential.** Name it `Crowdstrike — host triage` (or any Crowdstrike OAuth credential).
   Enable **Allow step overrides** on **Scope(s)** and save a default scope string in the vault.
2. **Add Detect hosts.** From **Add a step** → **Integrations**, add the CrowdStrike hosts/devices operation you need,
   rename it **Detect hosts**, select that credential, and leave **Scope(s)** empty under **Credential**.
3. **Add List devices.** Add another CrowdStrike service step, rename it **List devices**, select the same credential,
   and set **Scope(s)** to the narrower value your API call needs.

## Keep in mind

- Only the fields in the table under [When to use](#when-to-use) show **Allow step overrides**. Passwords, client
  secrets, private keys, and tokens never appear. **OAuth 2.0 Authorization Code** is not listed: step overrides
  cannot change the stored user grant (`tokenSet`), so scope, resource, and audience stay vault-only for that type.
- An empty override keeps the vault value. Clearing a vault-backed value at runtime is not the same as leaving the
  override empty—follow the field help when you need to remove a value.
- Overrides apply when the step runs with that credential binding. They do not rewrite the secret stored in the vault.
- If you do not see opted-in fields under **Credential**, confirm the credential was saved with **Allow step overrides**
  on and that the step uses that credential (not **Credential Lookup** alone).

[Credentials](/getting-started/credentials/) ·
[Look up service credentials by name at runtime](../dynamic-credential-lookup/) ·
[Call native integrations](../call-native-integrations/)
