> 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).

# 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="/files/uYodgSZKzuRgSNzoF0hy" 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="/files/1h3BtCZ9CQDadQj7iD5d" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
