sso:DetachCustomerManagedPolicyReferenceFromPermissionSet

Permissions management

sso:DetachCustomerManagedPolicyReferenceFromPermissionSet is a Permissions management access-level action in the sso service. Grants permission to detach a customer managed policy reference from a permission set

Resource types

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

arn:${Partition}:sso:::instance/${InstanceId}
Instance
arn:${Partition}:sso:::permissionSet/${InstanceId}/${PermissionSetId}
PermissionSet

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

sso:PrimaryRegion String

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

Dependent actions

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

Example IAM policy

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

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

Related actions in sso

View all sso actions →