> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/wasabi/detach-user-policy.md).

# Detach User Policy

Detaches the managed policy identified by its ARN from each matched Wasabi IAM user. The opposite job is [Attach User Policy](broken://pages/18cb0a83a1958e10a1d2292bed46b2278957bdcd).

### Before you begin

* A Wasabi access key with permission to manage IAM users. The job calls the Wasabi IAM endpoint (`https://iam.wasabisys.com`).
* Connection values can be saved once as defaults. See [Action Center Settings](broken://pages/b23094e7a0e65b2d6e12d56cff38ca6b85c39d2a), group **Wasabi**, one tab per job.
* Accepted asset types: user.
* Required columns: **Specifics.wasabi.UserName**. Users without a Wasabi user name are ignored, so the Wasabi adapter must be connected and discovered first.

### Settings

| Setting           | Type             | Required | Default     | Description                                    |
| ----------------- | ---------------- | -------- | ----------- | ---------------------------------------------- |
| Access Key ID     | Text             | Yes      | None        | Wasabi access key ID.                          |
| Secret Access Key | Text (sensitive) | Yes      | None        | Wasabi secret access key. Masked after saving. |
| Region            | Text             | No       | `us-east-1` | Region name passed to the IAM client.          |
| Policy ARN        | Text             | Yes      | None        | ARN of the managed policy.                     |

### How it works

If none of the matched users has a Wasabi user name, the job fails with an error. Each user is handled on its own: a Wasabi error for one user is logged and the job continues with the next one, so the job node itself does not fail on a single user's error. If the policy is not attached or does not exist, it is logged and skipped.

The matched assets are passed unchanged to the next node.

### Example

```
Access Key ID:      YOUR_ACCESS_KEY_ID
Secret Access Key:  YOUR_SECRET_ACCESS_KEY
Region:             us-east-1
Policy ARN:        arn:aws:iam::123456789012:policy/ExamplePolicy
```

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/0fd3aae844db8baf52bca89680f9db8486f05952">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values for this job.</td><td><a href="broken://pages/b23094e7a0e65b2d6e12d56cff38ca6b85c39d2a">Broken link</a></td></tr><tr><td><strong>Attach User Policy</strong></td><td>Attach a managed policy.</td><td><a href="broken://pages/18cb0a83a1958e10a1d2292bed46b2278957bdcd">Broken link</a></td></tr></tbody></table>
