---
title: "POST /accountpermissions/list"
method: POST
path: "/accountpermissions/list"
---

# POST /accountpermissions/list

`POST /accountpermissions/list`

Lists the permissions an account has to configure Amazon Inspector. If the account is a member account or standalone account with resources managed by an Organizations policy, the operation returns fewer permissions.

## Request body

- object
  - `service` 'EC2' | 'ECR' | 'LAMBDA' — The service scan type to check permissions for.
  - `maxResults` integer — The maximum number of results the response can return. If your request would return more than the maximum the response will return a <code>nextToken</code> value, use this value when you call the action again to get the remaining results.
  - `nextToken` string — A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the <code>maxResults</code> maximum value it will also return a <code>nextToken</code> value. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

## Response `200`

Success

- ListAccountPermissionsResponse
  - `permissions` Permission[], required — Contains details on the permissions an account has to configure Amazon Inspector.
    - `service` 'EC2' | 'ECR' | 'LAMBDA', required — The services that the permissions allow an account to perform the given operations for.
    - `operation` 'ENABLE_SCANNING' | 'DISABLE_SCANNING' | 'ENABLE_REPOSITORY' | 'DISABLE_REPOSITORY', required — The operations that can be performed with the given permissions.
  - `nextToken` string — A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the <code>NextToken</code> value returned from the previous request to continue listing results after the first page.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ThrottlingException
- `483` — InternalServerException

---

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