sso-oauth:CreateTokenWithIAM

Write

sso-oauth:CreateTokenWithIAM is a Write access-level action in the sso-oauth service. Grants permission to create and return OAuth 2.0 access tokens and refresh tokens for authorized client applications. These tokens might contain defined scopes that specify permissions such as `read:profile` or `write:data`

Resource types

ARNs that sso-oauth:CreateTokenWithIAM can be scoped to in an IAM policy.

arn:${Partition}:sso::${AccountId}:application/${InstanceId}/${ApplicationId}
Application

Condition keys

No condition keys are documented for this action.

Dependent actions

To use sso-oauth:CreateTokenWithIAM you may also need to grant:

Example IAM policy

A minimal policy that allows sso-oauth:CreateTokenWithIAM. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSsooauthCreateTokenWithIAM",
      "Effect": "Allow",
      "Action": "sso-oauth:CreateTokenWithIAM",
      "Resource": "*"
    }
  ]
}

Related actions in sso-oauth

View all sso-oauth actions →