---
title: "PUT /accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"
method: PUT
path: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"
---

# PUT /accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}

`PUT /accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}`

Updates an existing IAM policy assignment. This operation updates only the optional parameter or parameters that are specified in the request. This overwrites all of the users included in <code>Identities</code>.

## Path parameters

- `AwsAccountId` string, required
- `AssignmentName` string, required
- `Namespace` string, required

## Request body

- object
  - `AssignmentStatus` 'ENABLED' | 'DRAFT' | 'DISABLED' — <p>The status of the assignment. Possible values are as follows:</p> <ul> <li> <p> <code>ENABLED</code> - Anything specified in this assignment is used when creating the data source.</p> </li> <li> <p> <code>DISABLED</code> - This assignment isn't used when creating the data source.</p> </li> <li> <p> <code>DRAFT</code> - This assignment is an unfinished draft and isn't used when creating the data source.</p> </li> </ul>
  - `PolicyArn` string — The ARN for the IAM policy to apply to the Amazon QuickSight users and groups specified in this assignment.
  - `Identities` object — The Amazon QuickSight users, groups, or both that you want to assign the policy to.

## Response `200`

Success

- UpdateIAMPolicyAssignmentResponse
  - `AssignmentName` string — The name of the assignment or rule.
  - `AssignmentId` string — The ID of the assignment.
  - `PolicyArn` string — The ARN for the IAM policy applied to the Amazon QuickSight users and groups specified in this assignment.
  - `Identities` object — The Amazon QuickSight users, groups, or both that the IAM policy is assigned to.
  - `AssignmentStatus` 'ENABLED' | 'DRAFT' | 'DISABLED' — <p>The status of the assignment. Possible values are as follows:</p> <ul> <li> <p> <code>ENABLED</code> - Anything specified in this assignment is used when creating the data source.</p> </li> <li> <p> <code>DISABLED</code> - This assignment isn't used when creating the data source.</p> </li> <li> <p> <code>DRAFT</code> - This assignment is an unfinished draft and isn't used when creating the data source.</p> </li> </ul>
  - `RequestId` string — The Amazon Web Services request ID for this operation.
  - `Status` integer — The HTTP status of the request.

## Other responses

- `480` — AccessDeniedException
- `481` — InvalidParameterValueException
- `482` — ResourceExistsException
- `483` — ResourceNotFoundException
- `484` — ThrottlingException
- `485` — ConcurrentUpdatingException
- `486` — InternalFailureException

---

[API](https://skmtc.net/aws/apis/quicksight.md) · [All operations](https://skmtc.net/aws/apis/quicksight/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/quicksight/versions/2f2bbd7e70ca/schema)
