# Automated User Onboarding

> **Applications:** Workday, Azure Active Directory

**Applications:** Workday, Azure Active Directory

**Description:** Upon the creation of a new worker in Workday, the system initiates the onboarding process in Azure Active Directory. This enables the IT team to automate the provisioning of user accounts.
1. Open **Studio Web** and create a new project. Make sure that in the New Project window, in the **How to start the automation** drop-down, **Event based** is selected.
2. Add an Event Trigger activity and in the **Event** field, select **Employee Created**. Next, configure the activity as follows:
   1. Connect to your Workday account.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-330226-bd45e9cd-4b739a14.webp)
   
   2. Additional filters may be added to your automation, depending on your needs.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-330230-616caa69-32f374cf.webp)
3. Next, add a Workday: [Get Record](https://docs.uipath.com/activities/other/latest/integration-service/uipath-workday-workday-get-record) activity to your canvas, configure **Select Object** to **Employees** and Switch to **Object View**.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-330234-3e1093d4-abe56c7a.webp)
   
   1. For **employeeID**select the **Output** of the **Event Trigger**.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-330238-4c26a169-4d0870d4.webp)
4. Next, add a [Azure Active Directory: Create User](https://docs.uipath.com/activities/other/latest/it-automation/create-user) activity to your project.
   1. Set up your Azure AD connection.
   2. For the **Mail Nickname** field, select the output of the Workday **Get Record** activity and choose **Response &gt; Personal_Data &gt; Name_Data &gt; Legal_Name_Data &gt; Name_Detail_Data &gt; First_Name**.
   3. For the **User Principal Name**, since you need to concatenate two or more values, open the **Expression Editor**, and write “merge three strings”. The correct expression is automatically created.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-330242-4c875b4c-1728265c.webp)![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-330246-2f105ecc-4130e0c3.webp)
   
   4. Next, replace `string1` and `string2` with the **Get Record** outputs **Response &gt; Personal_Data &gt; Name_Data &gt; Legal_Name_Data &gt; Name_Detail_Data &gt; First_Name**, and **Response &gt; Personal_Data &gt; Name_Data &gt; Legal_Name_Data &gt; Name_Detail_Data &gt; Last_Name**, respectively.
   5. Add your company domain in the `string3` position.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-330250-2ffa082c-6c178efe.webp)
   
   6. For the **Name** property field, you can follow step **d.** again, concatenating two strings.
   7. Replace `string1` and `string2` with the **Get Record** outputs **Response &gt; Personal_Data &gt; Name_Data &gt; Legal_Name_Data &gt; Name_Detail_Data &gt; First_Name** and **Response &gt; Personal_Data &gt; Name_Data &gt; Legal_Name_Data &gt; Name_Detail_Data &gt; Last_Name**, respectively.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-330258-13c57327-dc68ceee.webp)
   
   8. Add the **Initial Password**.
   9. You can also optionally fill the **Job Info** and **Identity** property fields, according to your needs.
5. Execute the workflow. The new employee is automatically onboarded in Azure Active Directory.
