You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何从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 Attributes array, not as a direct property on the user object.

User Authentication Endpoint

内容的提问来源于stack exchange,提问作者LOTUSMS

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 07:15:12