detach_user_policy
Detach specified canned policies from a MinIO user to revoke permissions. Dry-run previews the change before it is applied.
Instructions
[WRITE][risk=medium] Detach canned policies from a user. Reversible → attach.
Refused for this tool's own credential: the account keeps authenticating and loses exactly the rights the undo would need to put them back.
Args: access_key: The user's access key (from iam_users). policies: Policy names to detach (from iam_users). dry_run: If True, preview without detaching. target: MinIO target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| policies | Yes | ||
| access_key | Yes |