# Entity To Entity Mapping

Now using "Entity to entity mapping", one can restrict accessing the products with respect to Offices or Roles.

Beginning at the main screen, select **Admin,** then **System** from the drop down menu. This will launch the **System** menu.

Select **Entity To Entity Mapping** to set the preferences.&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/Screenshot%20from%202019-06-07%2005-38-55.png?version=1\&modificationDate=1559882468455\&cacheVersion=1\&api=v2\&width=850)

### Offices --> Loan Products&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/2.png?version=1\&modificationDate=1431000180896\&cacheVersion=1\&api=v2\&width=700)

Setting up of Office access to loan products:

1\) Click on "**Office --> Loan Products**": Office access to loan products page would be displayed.&#x20;

2\) Click on "**Filter**": This displays the defined Office access to loan products. Then "Add" would be displayed.&#x20;

3\) Click on "**Add**": On clicking the Add button, it will display a page to Add New Entity Mapping as shown below.          &#x20;

Here, i) Need to select Office for which loan products should be accessed.                  &#x20;

&#x20;         ii) Need to select the loan product for which selected office can be accessed.                  &#x20;

&#x20;          iii) This is an optional field, Provided start date will be the effective access date for the mapped products.                  &#x20;

&#x20;          iv) This is an optional field, Provided end date will be the ending date of the provided restricted access.&#x20;

Then click on **Submit.** Now clicking on the Filter>>search button,  you would be able to see added entity mappings.&#x20;

<div align="left"><img src="https://mifosforge.jira.com/wiki/download/thumbnails/92504226/4.png?version=1&#x26;modificationDate=1431071460713&#x26;cacheVersion=1&#x26;api=v2&#x26;width=589" alt=""></div>

### Offices --> Savings Products&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/5.png?version=1\&modificationDate=1431074972027\&cacheVersion=1\&api=v2\&width=650)

Setting up of Office access to savings products:

1\) Click on "**Office --> Savings Products**": Office access to savings products page would be displayed.&#x20;

2\) Click on "**Filter**": This displays the defined Office access to savings products. Then "Add" would be displayed.&#x20;

3\) Click on "**Add**": On clicking the Add button, it will display a page to Add New Entity Mapping as shown below.          &#x20;

Here, i) Need to select Office for which savings products should be accessed.                    &#x20;

ii) Need to select the savings product for which selected office can be accessed.                    &#x20;

iii) This is an optional field, Provided start date will be the effective access date for the mapped products.                    &#x20;

iv) This is an optional field, Provided end date will be the ending date of the provided restricted access. Then click on **Submit.** Now clicking on the Filter>>search button, you would be able to see added entity mappings.&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/6.png?version=1\&modificationDate=1431075217053\&cacheVersion=1\&api=v2\&width=634)

### Offices --> Charges

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/7.png?version=1\&modificationDate=1431075448053\&cacheVersion=1\&api=v2\&width=650)

Setting up of Office access to charges:

1\) Click on "**Office --> charges**": Office access to charges page would be displayed.&#x20;

2\) Click on "**Filter**": This displays the defined Office access to charges. Then "Add" would be displayed.

&#x20;3\) Click on "**Add**": On clicking the Add button, it will display a page to Add New Entity Mapping as shown below.          &#x20;

Here, i) Need to select Office for which charges should be accessed.                    &#x20;

ii) Need to select the charges for which selected office can be accessed.                    &#x20;

iii) This is an optional field, Provided start date will be the effective access date for the mapped charges.                    &#x20;

iv) This is an optional field, Provided end date will be the ending date of the provided restricted access.&#x20;

Then click on **Submit.** Now clicking on the Filter>>search button, you would be able to see added entity mappings.&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/8.png?version=1\&modificationDate=1431075670161\&cacheVersion=1\&api=v2\&width=627)

### Roles --> Loan products&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/9.png?version=1\&modificationDate=1431076205355\&cacheVersion=1\&api=v2\&width=650)

Setting up of Role access to Loan products:

1\) Click on "**Roles --> Loan products**": Role access to loan products page would be displayed.&#x20;

2\) Click on "**Filter**": This displays the defined Role access to loan products. Then "Add" would be displayed.&#x20;

3\) Click on "**Add**": On clicking the Add button, it will display a page to Add New Entity Mapping as shown below.          &#x20;

Here, i) Need to select Role for which loan products should be accessed.                   &#x20;

ii) Need to select the loan products for which the selected role can be accessed.                    &#x20;

iii) This is an optional field, Provided start date will be the effective access date for the mapped charges.                    &#x20;

iv) This is an optional field, Provided end date will be the ending date of the provided restricted access.&#x20;

Then click on **Submit.** Now clicking on the Filter>>search button, you would be able to see added entity mappings.&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/10.png?version=1\&modificationDate=1431078005760\&cacheVersion=1\&api=v2\&width=631)

### Roles --> Savings products&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/11.png?version=1\&modificationDate=1431078780444\&cacheVersion=1\&api=v2\&width=650)

Setting up of Role access to Savings products:

1\) Click on "**Roles --> Savings products**": Role access to savings products page would be displayed.

&#x20;2\) Click on "**Filter**": This displays the defined Role access to savings products. Then "Add" would be displayed.&#x20;

3\) Click on "**Add**": On clicking the Add button, it will display a page to Add New Entity Mapping as shown below.          &#x20;

Here, i) Need to select Role for which savings products should be accessed.                    &#x20;

ii) Need to select the savings products for which selected role can be accessed.                    &#x20;

iii) This is an optional field, Provided start date will be the effective access date for the mapped charges.                    &#x20;

iv) This is an optional field, Provided end date will be the ending date of the provided restricted access.&#x20;

Then click on **Submit.** Now clicking on the Filter>>search button, you would be able to see added entity mappings.&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/12.png?version=1\&modificationDate=1431078939141\&cacheVersion=1\&api=v2\&width=633)

### Editing or Deleting - Created Entity&#x20;

In the page shown in the example below, you can Edit or Delete as mentioned below:&#x20;

1\) Click on the required Entity to entity mapping.&#x20;

2\) Click on Filter button, Created entity mapping would be displayed.&#x20;

3\) To **Edit** - Click on "**Edit"** button, Edit page would be displayed wherein you can make any necessary modification.&#x20;

4\) To **Delete** - Click on "**X**" button, It will ask for the delete confirmation, by clicking on the yes button it gets deleted.&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/92504226/13.png?version=1\&modificationDate=1431079863025\&cacheVersion=1\&api=v2\&width=700)

{% hint style="info" %}
To enable this feature, you need to go to Admin>>System>>Configuration and enable:-

office-specific-products-enable, only then you would be able to restrict office specific products.

restrict-products-to-user-office, only then you would be able to restrict products to users.
{% endhint %}

Related articles

* Page:[Accounts linked to Financial Activities](https://docs.mifos.org/mifosx/user-manual/for-administrators-mifos-x-platform/accounting/accounts-linked-to-financial-activities)
* Page:[Entity To Entity Mapping](https://docs.mifos.org/mifosx/user-manual/for-administrators-mifos-x-platform/administration/system/entity-to-entity-mapping)
* Page:[Fund Mapping](https://docs.mifos.org/mifosx/user-manual/for-administrators-mifos-x-platform/administration/organization/fund-mapping)
* Page:[Failed Upgrade Tips Mifos X](https://mifosforge.jira.com/wiki/spaces/docs/pages/97615907/Failed+Upgrade+Tips+Mifos+X)
