Mega S4 icon

Mega S4

Interact with Mega.nz S4 object storage (S3-compatible)

IAM → Attach User Policy

AI-generated

Summary

Attach a specified IAM policy to a designated IAM user by providing the user name and the policy's Amazon Resource Name (ARN).

Inputs

  • User Name (required) — Name of the IAM user to attach the policy to.
  • Policy ARN (required) — Amazon Resource Name (ARN) of the IAM policy to attach.

Output shape

a single JSON object indicating success or failure of the policy attachment operation

The output confirms whether the policy was successfully attached to the user; details on errors or confirmation are included in the response object.

Discussion