# How can I restrict Qlik Sense Apps inside a Stream?

1. **Create a custom property:** &#x20;

* Insert a name&#x20;
* In Resource type check Apps and Users&#x20;
* Insert a value then **Apply**

![QMC -> CustomProperties -> Create new](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2FSwPDewziPMvyWITDjHjO%2Fprint1.png?alt=media\&token=d4217ae3-bf26-4e0a-b453-eccf39d23907)

2\. **Assign the custom property to the desired app:** &#x20;

* Add the value previously registered in the custom property and **Apply**

![QMC -> Apps -> Desired App](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2Fn6c2pPSMG2pEZx9dtL71%2Fprint8.png?alt=media\&token=2f8c149b-4bc4-40c0-9149-5849dab75179)

3\. **Disable the Security Rule, named as “Stream”**: &#x20;

* Check the box disabled and **Apply**.

![QMC->Security Rules-> Stream ](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2FBy3WDkNl6scVtTgrFnaB%2Fprint2.png?alt=media\&token=2bdd4b8f-122c-40bf-98e1-de98d6b6c9e7)

4\. **Create a security rule:** &#x20;

* Create a rule from template: App Access&#x20;
* Name: insert a name of your choice

![QMC->Security Rules -> Create New ](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2FdzbZMatsUY4sgg5ybYxy%2Ffig3.png?alt=media\&token=e16cc111-7331-4618-92b5-58b7098b885b)

* Resource filter: App\_\*&#x20;
* Actions check the read box

![](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2FIJmS7xNT1vi7t2V9vZaK%2Fprint3.png?alt=media\&token=66765b52-104a-4dbc-a34a-34f017214803)

Then in the filter condition, configure like shown below:

![](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2FwjmNnpd0rUdehGEDO24K%2Fprint5.png?alt=media\&token=aacf65b8-56b7-45f0-b707-c1ade0b4907b)

* Add one more filter clicking in the plus icon and ungroup it&#x20;
* The condition between the filters will be "OR" and insert the username value like shown below

![](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2Fq7huLYMTOZgFuOcTNSDS%2Fprint6.png?alt=media\&token=95538f39-242f-49b7-9448-1aa057ea1f9b)

All set up! It will look like this:

![](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2FA0a2ZyYr4yqapA6Pt9P9%2Fprint7.png?alt=media\&token=3367a4f2-0126-4877-8c80-9dad480fab3e)

You can preview the rules clicking in preview&#x20;

Finish by clicking on apply

Before these settings:

![Hub -> StreamTest](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2FWnN1Z6kIovJ76cCuvOFZ%2FPRINT9.png?alt=media\&token=d59387e8-93fc-40fc-9a4b-c16d4a162558)

After these settings:&#x20;

![Hub -> StreamTest](https://2756503104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mai7QzviccaKb44wbXs%2Fuploads%2FeBa2AGcJkkFqS9cAS4fm%2Fprint10.png?alt=media\&token=9a2cd85b-0736-4dd5-9ced-7f22a212fa63)
