如何从Cognito客户端的用户对象中获取邮箱地址?
Markdown Formatting Demo
Practical Formatting Examples
Headings
Use number signs to define heading hierarchy:
Level 1 Heading
Level 2 Heading
Level 3 Heading
Unordered List Items
- Basic list item
- Another list item
- Nested list item
- Second nested item
Text Emphasis
- Italicized text (wrapped with single asterisks)
- Bold emphasized text (wrapped with double asterisks)
Code & Commands
- Inline code snippet:
const cognito = new CognitoIdentityProviderClient({}); - Multi-line code block:
export const handler = async (event) => { const paginator = paginateListUsers({ client: cognito }, { UserPoolId: 'us-east-1_XXXXXX', AttributesToGet: ["email"] }); let users = []; for await (const page of paginator) { users = [...users, ...page.Users]; } return users; };
Quoted Text
When retrieving user attributes from Cognito, the email is stored in the
Attributesarray, not as a direct property on the user object.
Links
内容的提问来源于stack exchange,提问作者LOTUSMS
相关产品推荐
相关产品推荐

