The Option **Save Query** allows the layouts to be saved publicly or with restricted access.

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=6u71y2218c8845ac54acf9af350a92b04cf49)

\* **Public** - Anyone who has access to the application will have access to the saved Layout

\* **Use Rule** - Allows the layouts to be saved with restricted access.

In this article, you will learn how to create a restricted rule in the option **Save Query**.

## Creating a Rule

1 - On the Configuration screen, click **New Rule.**

You must define the name and Label for the identification of the rule in the Application interface.

![](//img.zohostatic.com/zde/static/images/info.png)

The Label field accepts a global variable

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=6u71ydba2cbcce769450f883f33f6f962c130)

2 - Then, add a global variable, to create the access restriction to the layout

In the example, the variable **usr\_login,** which stores the login in the security module is being used. 

Thus, when *user A* creates one or more rules, only he will have access.

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=6u71y2f37d7a77c584dbdb0382b9168b31d94)

3 - Click Add, to include the global variable in the rule.

![](//img.zohostatic.com/zde/static/images/info.png)

It is possible to create the rule without a global variable, however, this way the rule will have the same behavior as the public level

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=6u71ya13746b388af4a58a9ae89e187f8d50f)

4 - Then click **Finish.**

**![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=6u71ye35c0b3700b343f78a390484426b1f08)**

When running the application and saving a layout with user 1, for example, only he has access to the profile created.

**User 1 access example**

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=6u71y13e426fc9ea64e00a38cf0a895cc69fc)

**User 2 access example**

**![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=6u71y0906480286664acbb7c0d0ac321f7ead)**