# Setup

> Set up the Amazon Connect Activities package, including prerequisites, IAM user creation, and authentication steps

## Introduction

Before you can start using the Amazon Connect 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.
2. Build your project.

## 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 Connect documentation.

For reference, here 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 includes the *AmazonConnectFullAccess* permission), you can proceed to the **Build your project** 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 Connect activities requires *AmazonConnectFullAccess*.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-180224-d2f90aee-19de543a.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-180020-99b4d006-7844a96a.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 Connect 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.

## Build your project

### 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**.

### Install the activities package

1. In the **Design** ribbon, click **Manage Packages** (this opens the **Manage Packages** window).
2. Under **All Packages**, click **Official**.
3. In the **Search** bar, enter *AmazonConnect*.
4. Click, install and accept the license for the **UiPath.AmazonConnect.Activities**. For more information about UiPath Studio packages, see [Managing Packages](https://docs.uipath.com/studio/docs/managing-activities-packages) in the Studio Guide.
   :::important
   You may be missing a dependency. Ensure that the nuget.org (https://api.nuget.org/v3/index.json) package source is enabled for your project.
   :::

You're done!

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

## Next steps

For a hands-on learning experience and to quickly start using the activities, see the [Quickstarts](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-connect-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 Connect activities (including example property inputs/outputs), see the [Activities](https://docs.uipath.com/activities/other/latest/legacy-integrations/amazon-connect-activities) page for a complete activity list and links to the activity detail pages.
