# SecurityLevelConfig for the "public" tree?

**URL:** <https://forum.inductiveautomation.com/t/securitylevelconfig-for-the-public-tree/69804>\
**Category:** Ignition\
**Created:** [February 13, 2023, 10:16pm UTC](https://forum.inductiveautomation.com/t/securitylevelconfig-for-the-public-tree/69804 "2023-02-13T22:16:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmunin](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mmunin](https://forum.inductiveautomation.com/u/mmunin)\
**Post date:** [February 13, 2023, 10:16pm UTC](https://forum.inductiveautomation.com/t/securitylevelconfig-for-the-public-tree/69804/1 "2023-02-13T22:16:22Z")

</div>

If i edit a tag's security properties, I am greeted with this little "tree" structure of the "Authenticated" security level.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/e/8eaf658340a1afe3ab7d5e60fd9737d894b44874.png)

Is there a way to get this same tree, or even just a flattened list of all security levels, from scripting? I found [this](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.24/com/inductiveautomation/ignition/common/auth/security/level/SecurityLevelConfig.html) which has a method `toJson()` that should give me the structure I'm looking for, however I can't figure out how to get the `SecurityLevelConfig` for the "public" level that would include all the possible children?

---

<div class="post-metadata">

**Author:** ![mmunin](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mmunin](https://forum.inductiveautomation.com/u/mmunin)\
**Post date:** [February 14, 2023, 3:37am UTC](https://forum.inductiveautomation.com/t/securitylevelconfig-for-the-public-tree/69804/2 "2023-02-14T03:37:01Z")

</div>

Figured it out myself, gotta use `com.inductiveautomation.ignition.gateway.IgnitionGateway.get().getSecurityLevelManager().getSecurityLevelsConfig().toArray()`
