attach_user_policy
Attach MinIO canned policies to a user access key to set that user's permissions. Preview changes with dry-run and reverse them by detaching policies.
Instructions
[WRITE][risk=medium] Attach canned policies to a user. Reversible → detach.
Refused for this tool's own credential: MinIO's canned policies replace what a credential may do rather than only adding to it, so this can silently narrow the tool's own access.
Args: access_key: The user's access key (from iam_users). policies: Policy names to attach (from iam_policies). dry_run: If True, preview without attaching. 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 |