sso:ListTagsForResource

Read

sso:ListTagsForResource is a Read access-level action in the sso service. Grants permission to list the tags that are attached to a specified resource

Resource types

ARNs that sso:ListTagsForResource can be scoped to in an IAM policy.

arn:${Partition}:sso::${AccountId}:application/${InstanceId}/${ApplicationId}
Application
arn:${Partition}:sso:::instance/${InstanceId}
Instance
arn:${Partition}:sso:::permissionSet/${InstanceId}/${PermissionSetId}
PermissionSet
arn:${Partition}:sso::${AccountId}:trustedTokenIssuer/${InstanceId}/${TrustedTokenIssuerId}
TrustedTokenIssuer

Condition keys

Keys you can use in the Condition block of a policy that grants sso:ListTagsForResource.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

sso:ApplicationAccount String

Filters access by the account which creates the application. This condition key is not supported for customer managed SAML applications

sso:PrimaryRegion String

Filters access by the primary region of the IAM Identity Center instance

Dependent actions

To use sso:ListTagsForResource you may also need to grant:

Example IAM policy

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

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

Related actions in sso

View all sso actions →