---
title: "POST /#X-Amz-Target=TrentService.ListRetirableGrants"
method: POST
path: "/#X-Amz-Target=TrentService.ListRetirableGrants"
---

# POST /#X-Amz-Target=TrentService.ListRetirableGrants

`POST /#X-Amz-Target=TrentService.ListRetirableGrants`

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see [Grants in KMS](https://docs.aws.amazon.com/kms/latest/developerguide/grants.html) in the __Key Management Service Developer Guide__ . For examples of working with grants in several programming languages, see [Programming grants](https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html).

**Cross-account use**: You must specify a principal in your Amazon Web Services account. However, this operation can return grants in any Amazon Web Services account. You do not need `kms:ListRetirableGrants` permission (or any other additional permission) in any Amazon Web Services account other than your own.

**Required permissions**: [kms:ListRetirableGrants](https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html) (IAM policy) in your Amazon Web Services account.

**Related operations:**

*   CreateGrant
    
*   ListGrants
    
*   RetireGrant
    
*   RevokeGrant

## Query parameters

- `Limit` string
- `Marker` string

## Headers

- `X-Amz-Target` 'TrentService.ListRetirableGrants', required

## Request body

- ListRetirableGrantsRequest
  - `Limit` integer — <p>Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer.</p> <p>This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.</p>
  - `Marker` string — Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of <code>NextMarker</code> from the truncated response you just received.
  - `RetiringPrincipal` string, required — <p>The retiring principal for which to list grants. Enter a principal in your Amazon Web Services account.</p> <p>To specify the retiring principal, use the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of an Amazon Web Services principal. Valid principals include Amazon Web Services accounts, IAM users, IAM roles, federated users, and assumed role users. For help with the ARN syntax for a principal, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM ARNs</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.</p>

## Response `200`

Success

- ListGrantsResponse
  - `Grants` GrantListEntry[] — A list of grants.
    - `KeyId` string — The unique identifier for the KMS key to which the grant applies.
    - `GrantId` string — The unique identifier for the grant.
    - `Name` string — The friendly name that identifies the grant. If a name was provided in the <a>CreateGrant</a> request, that name is returned. Otherwise this value is null.
    - `CreationDate` string, date-time — The date and time when the grant was created.
    - `GranteePrincipal` string — <p>The identity that gets the permissions in the grant.</p> <p>The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the <code>GranteePrincipal</code> field contains the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services">service principal</a>, which might represent several different grantee principals.</p>
    - `RetiringPrincipal` string — The principal that can retire the grant.
    - `IssuingAccount` string — The Amazon Web Services account under which the grant was issued.
    - `Operations` GrantOperation[] — The list of operations permitted by the grant.
    - `Constraints` object — A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.
      - `EncryptionContextSubset` object — A list of key-value pairs that must be included in the encryption context of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic operation</a> request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
      - `EncryptionContextEquals` object — A list of key-value pairs that must match the encryption context in the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic operation</a> request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
  - `NextMarker` string — When <code>Truncated</code> is true, this element is present and contains the value to use for the <code>Marker</code> parameter in a subsequent request.
  - `Truncated` boolean — A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in thisresponse to the <code>Marker</code> parameter in a subsequent request.

## Other responses

- `480` — DependencyTimeoutException
- `481` — InvalidMarkerException
- `482` — InvalidArnException
- `483` — NotFoundException
- `484` — KMSInternalException

---

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