# Setup

> Before you can start using the Amazon Textract activities, you must complete a couple of steps to enable authorization from the [AWS Identity and Access Management (IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html) service.

## Introduction

Before you can start using the Amazon Textract activities, you must complete a couple of steps to enable authorization from the [AWS Identity and Access Management (IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html) service.

To enable authorization and start building your automation projects, complete the following:

1. [Create IAM user](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-textract-setup#setup)
2. [Build your project](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-textract-setup#setup)

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-34127-fe934376-5d914c21.webp)

### 1. Create IAM user

Follow the [Create an IAM User](https://docs.aws.amazon.com/textract/latest/dg/setting-up.html#setting-up-iam) steps in the Amazon Textract documentation.

For reference, below is how we created an IAM user for our examples.

:::note
If you already have an IAM user with an Access Key ID and Secret Access Key (that include the *AmazonTextractFullAccess* and *AmazonS3ReadOnlyAccess* permissions), you can proceed to the [2. Build your project](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-textract-setup#setup) step.
:::

1. Sign in to the [AWS console](https://console.aws.amazon.com/) using your AWS account credentials.
2. Open the **Identity and Access Management (IAM)** service (you can enter *IAM* in the **Find Services** search bar).

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-179328-f42159fb-024c6e4f.webp)
3. In the left-hand navigation panel, click **Groups**.
   * Before creating an IAM user, create an IAM group. For more information, see [Use Groups to Assign Permissions to IAM Users](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#use-groups-for-permissions) in the IAM Best Practices documentation.
4. Click **Create New Group**.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-187518-63a8a800-3cf143b9.webp)
5. Enter a **Group Name** and click **Next Step** at the bottom of the page.
6. Select the policies that you want to attach to the group and IAM user.
   * It's recommended that you follow the [Grant Least Privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege) guidance in the IAM Best Practices documentation.
   * At a minimum, the Amazon Textract activities require *AmazonTextractFullAccess* and *AmazonS3ReadOnlyAccess*.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-33783-63355fdf-f6e2673b.webp)

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-36069-7549a524-33c47d8e.webp)

     :::note
     Establishing a principle of least privilege ensures that authenticated identities are only permitted to perform the most minimal set of functions necessary to fulfill a specific task, while balancing usability and efficiency. Operating on this principle limits the blast radius - or potential impact - of inappropriate use of valid credentials. The principle of least privilege allows you to enforce separation of duties for oversight and governance, and makes auditing the entitlements to your resources much simpler.
     :::
7. Review your group details and click **Create Group** at the bottom of the page.
8. In the left-hand navigation panel, click **Users**.
9. Click **Add user**.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-180640-aaef9713-a8aa8e1c.webp)
10. Enter a **User name** and select **Access type** - *Programmatic access*.

    ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-180940-b6a004c5-935ef5d9.webp)
11. Under **Set permissions**, click **Add user to group** and select the group that you created in the steps above.

    ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-34395-31545d11-1c0753b5.webp)
12. Review your user details and click **Create user** at the bottom of the page.
13. After you create the user, a **Success** window appears with the IAM user **Access key ID** and **Secret access key**.
* Take note of these values, you'll need them when you add the **Amazon Scope** activity to your projects.
* For more information about your access keys, see [Managing Access Keys for IAM Users](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html?icmpid=docs_iam_console) in the AWS documentation.

### 2. Build your project

1. Create a new automation project.
   1. Open **UiPath Studio**.
   2. Under **New Project**, click **Process** (this opens a **New Blank Process** window).
   3. Enter a project **Name**,**Location**, and **Description**.
   4. Click **Create**.

      ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-34763-a8a7d656-8f8ceef0.webp)
2. Install the **UiPath.Amazon.Textract.Activities** package.
   1. In the **Design** ribbon, click **Manage Packages** (this opens the **Manage Packages** window).
   2. Under **All Packages**, click **Go!**
   3. In the **Search** bar, enter *Textract*.
   4. Click, install and accept the license for the **UiPath.Amazon.Textract.Activities**.
      * For more information about Uipath Studio packages, see [Managing Packages](https://docs.uipath.com/studio/docs/managing-activities-packages) in the Studio Guide.

        ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-34639-8324d613-13977ad1.webp)

You're done!

Now that you have completed the setup, you can start adding the Amazon Textract activities to your project.

## Next steps

For a hands-on learning experience and to quickly start using the activities, see the [Quickstart](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-textract-quickstarts#quickstarts) guides. These guides provide step-by-step instructions to help you create working samples of the different activities so that you can verify the connection to your registered app and get familiar with the input/output properties.

To learn more about the Amazon Textact activities (including example property inputs/outputs), see the [Activities](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-textract-activities) page for a complete activity list and links to the activity detail pages.
