Skip to content

docs(cognito): clarify standard attribute name mappings #35072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ubaidrmn
Copy link

@ubaidrmn ubaidrmn commented Jul 25, 2025

Issue

Closes #17361

Reason for this change

The StandardAttribute interface for Cognito User Pools in the CDK includes profilePicture and fullname attributes that do not exist in the official list of Cognito standard attributes. These attributes are being mapped to the actual Cognito attributes name and picture internally in attr-names.ts.

This can be confusing for developers who are referencing Cognito's official documentation and expect the attribute names to match exactly.

Description of changes

Added a note in both fullname and profilePicture docstrings to clarify the mappings.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

### Issue

Closes aws#17361

### Reason for this change

The `StandardAttribute` interface for Cognito User Pools in the CDK includes `profilePicture` and `fullname` attributes that do not exist in the [official list](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html) of Cognito standard attributes. These attributes are being mapped to the actual Cognito attributes `name` and `picture` internally in [`attr-names.ts`](https://github.com/aws/aws-cdk/blob/v1-main/packages/@aws-cdk/aws-cognito/lib/private/attr-names.ts).

This can be confusing for developers who are referencing Cognito's official documentation and expect the attribute names to match exactly.

### Description of changes

Added a note in both `fullname` and `profilePicture` docstrings to clarify the mappings.

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Jul 25, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team July 25, 2025 18:14
@github-actions github-actions bot added feature-request A feature should be added or improved. p2 labels Jul 25, 2025
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 7f44cb2
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(@aws-cdk/aws-cognito): SettingAttribute 'fullname' is not consistent with documentation.
2 participants