cognito-idp:AddCustomAttributes

Write

cognito-idp:AddCustomAttributes is a Write access-level action in the cognito-idp service. Grants permission to add user attributes to the user pool schema

Resource types

ARNs that cognito-idp:AddCustomAttributes can be scoped to in an IAM policy.

arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}
userpool

Condition keys

Keys you can use in the Condition block of a policy that grants cognito-idp:AddCustomAttributes.

aws:ResourceTag/${TagKey} String

Filters access by tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows cognito-idp:AddCustomAttributes. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCognitoidpAddCustomAttributes",
      "Effect": "Allow",
      "Action": "cognito-idp:AddCustomAttributes",
      "Resource": "*"
    }
  ]
}

Related actions in cognito-idp

View all cognito-idp actions →