Skip to content

List Account Roles

sso_list_account_roles R Documentation

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

Description

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

Usage

sso_list_account_roles(nextToken, maxResults, accessToken, accountId)

Arguments

nextToken

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

maxResults

The number of items that clients can request per page.

accessToken

[required] The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.

accountId

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

Value

A list with the following syntax:

list(
  nextToken = "string",
  roleList = list(
    list(
      roleName = "string",
      accountId = "string"
    )
  )
)

Request syntax

svc$list_account_roles(
  nextToken = "string",
  maxResults = 123,
  accessToken = "string",
  accountId = "string"
)