v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1442718.5 KB

Lists all roles that are assigned to the user for a given AWS account.

get/assignment/roles#x-amz-sso_bearer_token&account_id

Query parameters

next_tokenstring

The page token from the previous response output when you request subsequent pages.

max_resultinteger

The number of items that clients can request per page.

account_idstring required

The identifier for the AWS account that is assigned to the user.

maxResultsstring

Pagination limit

nextTokenstring

Pagination token

Headers

x-amz-sso_bearer_tokenstring password required

The token issued by the <code>CreateToken</code> API call. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>IAM Identity Center OIDC API Reference Guide</i>.

Response

Success

nextTokenstring

The page token client that is used to retrieve the list of accounts.