> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/xoroerp-1/admin/user/user-store-mapping/creating-user-store-mapping.md). Agents can also search and read this documentation through its [MCP server](https://docs.xorosoft.com/~gitbook/mcp).

# Creating User Store Mapping

A user store mapping is essentially giving a user access to a store. Only a user mapped to the store can carry out transactions related to the store, such as creating a sales order, purchase order, etc.  Creating user store mappings is essential for businesses with multiple store locations. This process allows specific users to transact and manage operations within designated stores.&#x20;

To create a user store mapping, you'll begin by selecting the user and the store you want to give user access to. You can also set a default store for the user.

{% hint style="info" %}
To create a user store mapping, go to Menu > Admin > User > User Store Mapping
{% endhint %}

#### Mapping Details Fields

<table><thead><tr><th width="126">Field</th><th>Description</th></tr></thead><tbody><tr><td>User </td><td>Select the user you wish to map stores to. This defines who will have access to the store. After selecting  the user, click on the "Search" icon to load the already mapped stores for the users.</td></tr><tr><td>Store</td><td>Select the store you want to map to the user.</td></tr><tr><td>Grant</td><td>After selecting the user and the store, click on this option to grant the user access to the chosen store.</td></tr></tbody></table>

{% hint style="info" %}
Please remember, when a new store is created, it is crucial to map the store with the users working in the system. This step ensures they can transact and carry out necessary operations within those stores.
{% endhint %}

### Mapped Store Details

All stores mapped to a user will be listed in the bottom section of the user store mapping module. Selecting a user will display all the stores that are mapped to them for easy viewing and management.

#### Store Access Fields

<table><thead><tr><th width="172">Field</th><th>Description</th></tr></thead><tbody><tr><td>Ship Store</td><td>This field allows you to select a default ship store for the user.</td></tr><tr><td>Sale Store</td><td>This field allows you to select a default sale store for the user.</td></tr><tr><td>User</td><td>This field records the name of the user in the user store mapping.</td></tr><tr><td>Code</td><td>This field displays the unique code assigned to each store.</td></tr><tr><td>Name</td><td>This field presents the name of the store.</td></tr><tr><td>Description</td><td>This field shows the description of the store.</td></tr></tbody></table>

### Selecting a Default Store

To streamline user experience and ensure seamless transactions, users can be assigned default stores. This will be automatically selected when user accesses the modules like sales order, purchase order, etc. To set a default store:

1. Select the **Ship Store** and the **Sale Store** you want to designate as the default for the user.

   <figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2F9U21y8kQUkfVKFb5ZRbW%2Fimage.png?alt=media&amp;token=b05e7482-90fd-407d-bc11-49d5c89a8407" alt=""><figcaption></figcaption></figure>
2. Click on **Apply Default**. This action assigns the selected store as the default, streamlining the user's workflow by making their most used store easily accessible.

   <figure><img src="https://3188343778-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkf8DNCjEfcSm64PCPcmf%2Fuploads%2FFrlLpJoFyskRkMT3VSYE%2Fimage.png?alt=media&amp;token=c8923053-8fb4-4b1d-bc11-188601d9aaf4" alt=""><figcaption></figcaption></figure>

Creating and managing user store mappings streamline operations and enhance the efficiency of managing multi-store businesses. By following the steps outlined above, you can effectively assign and manage store access for users in your system.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.xorosoft.com/xoroerp-1/admin/user/user-store-mapping/creating-user-store-mapping.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
