# Limit Access to Sarch Guard Signals

**URL:** <https://forum.search-guard.com/t/limit-access-to-sarch-guard-signals/2196>\
**Category:** Search Guard\
**Created:** [August 3, 2021, 10:12am UTC](https://forum.search-guard.com/t/limit-access-to-sarch-guard-signals/2196 "2021-08-03T10:12:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosmonafft](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/kosmonafft/32/1010_2.png) [@Kosmonafft](https://forum.search-guard.com/u/Kosmonafft)\
**Post date:** [August 3, 2021, 10:12am UTC](https://forum.search-guard.com/t/limit-access-to-sarch-guard-signals/2196/1 "2021-08-03T10:12:58Z")

</div>

Hi folks,

how I am able to control user access to the Search Guard Signals?

1. Can I hide it to some users?
2. Am I able to prevent reading the content of the signal and action?

This is my example role:

```auto
{
  "description": "Test Example Role",
  "cluster_permissions": [],
  "index_permissions": [
    {
      "allowed_actions": [
        "SGS_INDICES_MONITOR",
        "SGS_READ",
        "SGS_SEARCH"
      ],
      "index_patterns": [
        "index1-*",
        "index2-*"
      ],
      "fls": [],
      "masked_fields": []
    }
  ],
  "tenant_permissions": [
    {
      "allowed_actions": [
        "SGS_KIBANA_ALL_WRITE",
        "SGS_SIGNALS_ALL"
      ],
      "tenant_patterns": [
        "SGS_GLOBAL_TENANT"
      ]
    }
  ],
  "exclude_cluster_permissions": [
    "SGS_SIGNALS_ACCOUNT_MANAGE",
    "SGS_SIGNALS_ACCOUNT_READ"
  ],
  "exclude_index_permissions": []
}

```

My testuser mapped to this role is still able to read all existing actions and even delete them all. Which permissions I need to configure to prevent my test user from doing that?

Thanks

---

<div class="post-metadata">

**Author:** ![Kosmonafft](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/kosmonafft/32/1010_2.png) [@Kosmonafft](https://forum.search-guard.com/u/Kosmonafft)\
**Post date:** [August 3, 2021, 10:16am UTC](https://forum.search-guard.com/t/limit-access-to-sarch-guard-signals/2196/2 "2021-08-03T10:16:49Z")

</div>

Ok while creating this post i saw this:

```auto
  "tenant_permissions": [
    {
      "allowed_actions": [
        "SGS_KIBANA_ALL_WRITE",
        "SGS_SIGNALS_ALL"
      ]

```

I have removed it and now my testuser is not able to see any action. Is there more granular way of controling the permissions here for example: show only those signals created by the user, or only signals for which index pattern the user has access to and similar configurations? Thanks

---

<div class="post-metadata">

**Author:** ![sirHusky](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@sirHusky](https://forum.search-guard.com/u/sirHusky)\
**Post date:** [August 3, 2021, 3:08pm UTC](https://forum.search-guard.com/t/limit-access-to-sarch-guard-signals/2196/3 "2021-08-03T15:08:31Z")

</div>

@Kosmonafft  
There are more granular permissions available on the signals, such as:

SGS\_SIGNALS\_WATCH\_ACKNOWLEDGE  
SGS\_SIGNALS\_WATCH\_READ  
SGS\_SIGNALS\_WATCH\_ACTIVATE  
SGS\_SIGNALS\_WATCH\_EXECUTE  
SGS\_SIGNALS\_WATCH\_MANAGE

Further details can be found [here](https://docs.search-guard.com/latest/elasticsearch-alerting-security-permissions)

these are based on access level, as opposed to visibility. Meaning the user will still be able to view all.

The workaround would be to use tenants to segregate different watchers on separate tenants that the user either has access to or not.

Also important to note, the signals run with the same security privilege as the last user that updated the job. therefore if signal was created by user A, the job will run with permissions assigned to user A, however if user B later amends the signal, the job will now run with user B’s permissions.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Kosmonafft](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/kosmonafft/32/1010_2.png) [@Kosmonafft](https://forum.search-guard.com/u/Kosmonafft)\
**Post date:** [August 4, 2021, 7:59am UTC](https://forum.search-guard.com/t/limit-access-to-sarch-guard-signals/2196/4 "2021-08-04T07:59:26Z")

</div>

Thank you. This is very valuable information

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/system/32/1870_2.png) [@system](https://forum.search-guard.com/u/system)\
**Post date:** [August 25, 2021, 8:00am UTC](https://forum.search-guard.com/t/limit-access-to-sarch-guard-signals/2196/5 "2021-08-25T08:00:17Z")

</div>

Closed on August 25, 2021, 8:00am UTC

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
