---
title: "Set the Working Directory's Permissions"
description: "Set the pool's permissions on the working directory, with Full control on the Temp, Work, and Mails folders, to prepare the Identity Manager production agent."
sidebar_position: 40
---

# Set the Working Directory's Permissions

This guide shows how to assign to the pool the right permissions on the working directory.

## Overview

For Identity Manager to work correctly, the pool of the production agent must be configured with specific permissions on the working directory.

This page describes the optimal configuration of the pool's permissions on the working directory to prepare the production agent's installation.

## Set the Working Directory's Permissions

Set the working directory's permissions by proceeding as follows:

1. Right-click on the working directory, for example `C:/identitymanager`, to select **Properties**, and in
the **Security** tab, click on **Advanced**.

    ![Working Directory Properties: Step 1](/images/identitymanager/prodagent_directoryproperties1.webp)

2. In the **Permissions** tab, click on **Add**, and in the pop-up window click on **Select a
principal**.

    ![Working Directory Properties: Step 2](/images/identitymanager/prodagent_directoryproperties2.webp)

3. Click on **Locations** to choose the current computer, and in the text area enter
`iis apppool/identitymanager` (`Usercube` being the name of the previously created pool).

    ![Working Directory Properties: Step 3](/images/identitymanager/prodagent_directoryproperties3.webp)

An error at this point should come either from a mistake in the pool's name or in the selected location.

4. Click on **OK** and make sure that only the **Read and execute**, **List folder contents** and
**Read** permissions are selected.

    ![Working Directory Properties: Step 4](/images/identitymanager/prodagent_directoryproperties4.webp)

5. Click on **OK** in the windows until they are all closed.
6. Right-click on the `Temp` folder to select **Properties**, and in the **Security** tab, click on
**Edit**.

    ![Temp Folder Properties: Step 1](/images/identitymanager/prodagent_foldersproperties1.webp)

7. Select the user corresponding to the pool and give them `Full control`.

    ![Temp Folder Properties: Step 2](/images/identitymanager/prodagent_foldersproperties2.webp)

8. Click on **OK** in the windows until they are all closed.
9. Repeat the last few steps (those concerning the `Temp` folder) to apply them to the `Work` and
`Mails` folders.

## Next Steps

To continue, [Finalize the Installation](./finalization.md)in a few steps.

