# Get client hostname at "Security Level Rules"

**URL:** <https://forum.inductiveautomation.com/t/get-client-hostname-at-security-level-rules/77747>\
**Category:** Ignition\
**Tags:** perspective, security\
**Created:** [August 11, 2023, 10:08am UTC](https://forum.inductiveautomation.com/t/get-client-hostname-at-security-level-rules/77747 "2023-08-11T10:08:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lev\_B](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@Lev\_B](https://forum.inductiveautomation.com/u/Lev_B)\
**Post date:** [August 11, 2023, 10:08am UTC](https://forum.inductiveautomation.com/t/get-client-hostname-at-security-level-rules/77747/1 "2023-08-11T10:08:04Z")

</div>

We are attempting to establish a dynamic Security Level Rule that applies when the hostname of a client is found in a dataset.

This Rule is working:

```auto
lookup(
//dataset
{[provider]IGN/DBCache/BMS_DATA/ClientProperties/databaseValue}
,//lookupValue
'clientHost'
,//noMatchValue
false
,//[lookupColumn]
'host'
,//[resultColumn]
'autoTechnicianLogin')

```

But when we try to replace the static string 'clientHost' with {[System]Client/Network/Hostname} or {session.props.host} it does not work.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [August 11, 2023, 10:49am UTC](https://forum.inductiveautomation.com/t/get-client-hostname-at-security-level-rules/77747/2 "2023-08-11T10:49:47Z")

</div>

Look at Security Zones:  
[https://docs.inductiveautomation.com/display/DOC81/Security+Zones](https://docs.inductiveautomation.com/display/DOC81/Security+Zones)

---

<div class="post-metadata">

**Author:** ![Lev\_B](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@Lev\_B](https://forum.inductiveautomation.com/u/Lev_B)\
**Post date:** [August 14, 2023, 11:39am UTC](https://forum.inductiveautomation.com/t/get-client-hostname-at-security-level-rules/77747/3 "2023-08-14T11:39:11Z")

</div>

Okay, in this case, I would have to write down all hostnames manually. Is there an option to retrieve these names from a database or a tag?
