Skip to content

/AWS1/CL_SSO=>GETROLECREDENTIALS()

About GetRoleCredentials

Returns the STS short-term credentials for a given role name that is assigned to the user.

Method Signature

IMPORTING

Required arguments:

IV_ROLENAME TYPE /AWS1/SSOROLENAMETYPE /AWS1/SSOROLENAMETYPE

The friendly name of the role that is assigned to the user.

IV_ACCOUNTID TYPE /AWS1/SSOACCOUNTIDTYPE /AWS1/SSOACCOUNTIDTYPE

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

IV_ACCESSTOKEN TYPE /AWS1/SSOACCESSTOKENTYPE /AWS1/SSOACCESSTOKENTYPE

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

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SSOGETROLECREDSRSP /AWS1/CL_SSOGETROLECREDSRSP