# Lenses CLI: redaction types for data policies

**URL:** <https://ask.lenses.io/t/lenses-cli-redaction-types-for-data-policies/422>\
**Category:** Lenses\
**Created:** [August 28, 2025, 8:36am UTC](https://ask.lenses.io/t/lenses-cli-redaction-types-for-data-policies/422 "2025-08-28T08:36:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![superbrain\_bug](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@superbrain\_bug](https://ask.lenses.io/u/superbrain_bug)\
**Post date:** [August 28, 2025, 8:36am UTC](https://ask.lenses.io/t/lenses-cli-redaction-types-for-data-policies/422/1 "2025-08-28T08:36:51Z")

</div>

Hello folks!

I’m getting some bad behaviour with policies and the redaction type, even though I created the policy with the redaction field established as All in the yaml file, once the policy is created this field is fixed to None. This is a little bit tedious because the policy should be manually modified once it’s created.

Could you help me to understand what is wrong?

Here is an example of the policy in yaml format:

```auto
name: policy_example
impactType: HIGH
category: PII
redaction: All
datasets:
  - topic.exmple
fields:
  - field.example
obfuscation: None

```

---

<div class="post-metadata">

**Author:** ![iMajna](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/imajna/32/116_2.png) [@iMajna](https://ask.lenses.io/u/iMajna)\
**Post date:** [August 28, 2025, 8:38am UTC](https://ask.lenses.io/t/lenses-cli-redaction-types-for-data-policies/422/2 "2025-08-28T08:38:44Z")

</div>

Hi @superbrain_bug

I found the issue with your configuration. You’re using `redaction` in your request, but the correct field name is `obfuscation`.

**To fix:**

- Change `redaction` to `obfuscation`

- Set the value to `ALL`

- Remove the `redaction` field entirely

Please update your configuration and let me know if you need any further assistance. We are curious if you used `redaction` because of a misleading documentation from us.

Regards,
