> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skypoint.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AWS Cognito

> Connect Amazon Web Services (AWS) Cognito to import data into Skypoint AI

<Tabs>
  <Tab title="Import data">
    ## Overview

    AWS Cognito is a user identity and data synchronization service that provides authentication, authorization, and user management for your web and mobile apps. You can use SkyPoint AI's built-in connector for importing data from AWS Cognito.

    This document will guide you through the process of connecting AWS Cognito to Skypoint AI.

    ## Prerequisite

    You will need the following details to configure and import data using AWS Cognito:

    * [AWS account](https://aws.amazon.com/)
    * User Pool ID
    * Access key ID
    * Secret access key.

    <Note>
      You can refer to the InforHMS Setup Guide document to learn more about the Prerequisites.
    </Note>

    ## Import Data using AWS Cognito connector

    Follow the below steps to create a new dataflow for the Cognito connector:

    1. In the left pane, go to **Dataflow** > **Imports**.

    The Dataflow window appears.

    <img src="https://mintcdn.com/skypoint/OAzQZDbhgP065cI-/doc_snippets/Dataflow_window.png?fit=max&auto=format&n=OAzQZDbhgP065cI-&q=85&s=a8f2a6e511b75b1a36ea50cb201ebbd7" alt="Dataflow window" style={{border: "1px solid black"}} width="1450" height="262" data-path="doc_snippets/Dataflow_window.png" />

    2. Click **New Dataflow** to create dataflow.

    <img src="https://mintcdn.com/skypoint/2X7jtvmKL6_-6PTU/doc_snippets/SetDataflowName.png?fit=max&auto=format&n=2X7jtvmKL6_-6PTU&q=85&s=331c5f69c6ca4d5508a0fd754cfceef5" alt="Set Dataflow Name" style={{border: "1px solid black"}} width="433" height="314" data-path="doc_snippets/SetDataflowName.png" />

    3. Enter a **Name** to identify your Dataflow.

    <Note>
      The name must start with a letter and contain only letters and numbers, with no spaces between the characters.
    </Note>

    4. Click **Next**.

    ## Add AWS Cognito Connector

    1. In the **All categories** or **Services and apps** tab, select the **AWS Cognito** connector to start the configuration.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWSCognito_ChooseConnector.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=186989ac178a2fbbb0368b4b32ab3e19" alt="Choose Connector" style={{border: "1px solid black"}} width="1168" height="793" data-path="doc_snippets/AWSCognito_ChooseConnector.png" />

    2. Also, you can use the **Search** function to find the **AWS Cognito** connector.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWSCognito_SetDataflowName.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=3f729be219d4a2b861e467567e3c45fb" alt="Set Dataflow Name" style={{border: "1px solid black"}} width="662" height="551" data-path="doc_snippets/AWSCognito_SetDataflowName.png" />

    3. In the **Set dataflow name**, enter the **Display Name** to identify your dataflow.
    4. In the **Description** box, you can enter an explanation of the connector.
    5. Click **Next**.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWSCognito_Configuration.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=8c6472452e34148125d30f7beb09b025" alt="Configuration" style={{border: "1px solid black"}} width="769" height="556" data-path="doc_snippets/AWSCognito_Configuration.png" />

    ## To configure AWS Cognito

    1. Enter your credentials such as **User Pool ID**, **Access key ID**, **Secret access key**, and **Region** to configure with the AWS Cognito connector.

    2. Click **Connect**.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWSCognito_EntityDetails.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=443190da9a9f328f18b72965d2c54d98" alt="Entity Details" style={{border: "1px solid black"}} width="1012" height="251" data-path="doc_snippets/AWSCognito_EntityDetails.png" />

    3. Enter the **Table Details** to process the data.

    | Item       | Description                                                                         |
    | :--------- | :---------------------------------------------------------------------------------- |
    | Purpose    | Option to assign a purpose (All, Customer 360, or Privacy-Metadata) for each table. |
    | Data       | Loads customer data                                                                 |
    | Metadata   | Loads Metadata                                                                      |
    | File Name  | Displays the name of the file that you imported.                                    |
    | Table Name | Displays the imported table name.                                                   |

    <Note>
      After configuration, all tables that are part of the connector are listed in the **Table Details**. For a single table, it displays by default, showing information specific to the client connector and the tables it supports upon successful connection. However, for multiple tables, you can select only those tables you want to import and process. For example, to import customer data, choose the tables containing customer information such as name, email, address, and contact details.
    </Note>

    4. Click **Save** to apply the changes.

    ## Run, edit, and delete the imported data

    1. After saving the connection, the AWS Cognito connector appears on the Dataflow page. Also, you can see the list of created tables in the [Databases](entities.md) section.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWSCognito_Output.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=2b0a64854c82b0dbe10d9c8fa28149f1" alt="Output" style={{border: "1px solid black"}} width="1871" height="508" data-path="doc_snippets/AWSCognito_Output.png" />

    | Item         | Description                                                                                 |
    | :----------- | :------------------------------------------------------------------------------------------ |
    | Name         | Displays the name of the Dataflow.                                                          |
    | Type         | Displays connector type symbol.                                                             |
    | Status       | Indicates whether the data is imported successfully.                                        |
    | Table Count  | Displays the number of tables.                                                              |
    | Created Date | Displays date of creation.                                                                  |
    | Updated Date | Displays last modified date.                                                                |
    | Last Refresh | Displays the latest refresh date. This date will get updated whenever you refresh the data. |
    | Group by     | Option to view the items in a specific Group (For example, name, type, status).             |

    2. Select the horizontal ellipsis in the **Actions** column and do the following:

    | If you want to                       | Then                                                                                               |
    | :----------------------------------- | :------------------------------------------------------------------------------------------------- |
    | Modify the Dataflow                  | Select **Edit** and modify the Dataflow. Click **Save** to apply your changes.                     |
    | Execute the Dataflow                 | Select **Run**.                                                                                    |
    | Bring the data to its previous state | Select **Rollback**.                                                                               |
    | Delete the Dataflow                  | Select **Remove** and then click the **Delete** button. All tables in the data source get deleted. |
    | See the run history of the Dataflow  | Select **Run History**.                                                                            |

    <Note>
      You can view the error message for data import failures from a data source in the Dataflow under **Run History** > **Description**.
    </Note>
  </Tab>

  <Tab title="Setup guide">
    ## Overview

    This document will help you gather all credentials for connecting AWS Cognito with Skypoint AI.

    ## Prerequisite

    You must have the following details:

    * An admin access in AWS console.

    ## To find User pool ID

    Follow below steps to find the User pool ID:

    1. Log in to your [AWS console](https://signin.aws.amazon.com/signin?redirect_uri=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3FhashArgs%3D%2523%26isauthcode%3Dtrue%26state%3DhashArgsFromTB_ap-northeast-1_8a684904bdeaf413\&client_id=arn%3Aaws%3Asignin%3A%3A%3Aconsole%2Fcanvas\&forceMobileApp=0\&code_challenge=le9NjcCPfq1AGl2y-OIrdj_ePPrnFUg4pqDsJNSdslk\&code_challenge_method=SHA-256).
    2. Go to **Cognito > User pools**.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWScognito_UserpoolID.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=f487e9207cbc2971bdec266d1cbd8db2" alt="User pool ID" style={{border: "1px solid black"}} width="1338" height="384" data-path="doc_snippets/AWScognito_UserpoolID.png" />

    ## To find Access key ID

    Follow below process to locate your Access key:

    1. Go to **IAM > Users > Security credentials**.
    2. You can locate the **Access key ID** in **Access keys** section.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWScognito_Accesskey.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=42e318608796b80bb6b1a39a6623aa9e" alt="Access key" style={{border: "1px solid black"}} width="1350" height="326" data-path="doc_snippets/AWScognito_Accesskey.png" />

    ## To locate Secret access key

    1. Go to **IAM > Users > Security credentials**.
    2. Click **Create access key** in the **Access keys** section.
    3. Download the file containing **Access key ID** and **Secret access key**.

    <Note>
      The Secret Access Key is displayed only once, so it is recommended to download the file and store it securely.
    </Note>

    ## To identify the Region

    You can locate the region of data to import in the AWS console. Follow below steps:

    1. Go to **AWS console > User Pools**.
    2. Click **Location** drop-down list.
    3. Select your desired location from the Location drop-down list.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWScognito_Region.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=622f5c7a03807541066563b3564edd6c" alt="Region" style={{border: "1px solid black"}} width="1412" height="606" data-path="doc_snippets/AWScognito_Region.png" />

    <Note>
      The selection of region is based on your AWS Cognito setup.
    </Note>

    4. Once you select the **Region**, the **User pools** for that region is displayed along with the **User pool ID**, **Created time**, and **Last updated time**.

    <img src="https://mintcdn.com/skypoint/867s-f5L6ea4TG6I/doc_snippets/AWScognito_Regionselected.png?fit=max&auto=format&n=867s-f5L6ea4TG6I&q=85&s=74a38b72136284c5d46fc8475bf89db3" alt="Region selected" style={{border: "1px solid black"}} width="1418" height="569" data-path="doc_snippets/AWScognito_Regionselected.png" />
  </Tab>
</Tabs>

## Next step

After completing the data import, start the [Master Data Management (MDM) - Stitch](stitch.md) process to develop a unified view of your customers.
