# Hiding tabs depending on access level

**URL:** <https://forum.inductiveautomation.com/t/hiding-tabs-depending-on-access-level/65223>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 14, 2022, 8:31am UTC](https://forum.inductiveautomation.com/t/hiding-tabs-depending-on-access-level/65223 "2022-10-14T08:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laima\_Meilute](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@Laima\_Meilute](https://forum.inductiveautomation.com/u/Laima_Meilute)\
**Post date:** [October 14, 2022, 8:31am UTC](https://forum.inductiveautomation.com/t/hiding-tabs-depending-on-access-level/65223/1 "2022-10-14T08:31:13Z")

</div>

Hello, everyone!

I am working on a work project in perspective and am struggling with the idea of how to make a tab container have less tabs when lower access level users are logged in. To be specific - I have session configuration and information tabs, which currently are set up in a way, that when a non-administrator user logs in, the tab just shows a view, that the person does not have access to this information, but it would be much more neat, if the tabs would just not show at all. I have an idea how to check authentication levels and when to check them, I just don't really understand how am I to write down tab quantity changes...

I hope I wrote down my issue clearly, but if I have missed something please let me know! And thank you in advance, any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [October 14, 2022, 8:43am UTC](https://forum.inductiveautomation.com/t/hiding-tabs-depending-on-access-level/65223/2 "2022-10-14T08:43:39Z")

</div>

I can't test it right now but maybe you can bind the `tab` property to whatever you use to evaluate access rights, and generate tabs in a transform ?

I have no idea what happens to the content of tabs when doing this, so it might not work. I guess you'll have to try and see.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 14, 2022, 8:50am UTC](https://forum.inductiveautomation.com/t/hiding-tabs-depending-on-access-level/65223/3 "2022-10-14T08:50:59Z")

</div>

If you Shift-right-click on the tab view in the Project Browser and use Copy JSON you can see the structure like this:

```auto
{
  "custom": {},
  "params": {},
  "props": {},
  "root": {
    "children": [
      {
        "meta": {
          "name": "EmbeddedView"
        },
        "position": {
          "tabIndex": 2
        },
        "type": "ia.display.view"
      },
      {
        "meta": {
          "name": "EmbeddedView_0"
        },
        "position": {
          "tabIndex": 1
        },
        "type": "ia.display.view"
      },
      {
        "meta": {
          "name": "EmbeddedView_1"
        },
        "type": "ia.display.view"
      }
    ],
    "meta": {
      "name": "root"
    },
    "props": {
      "currentTabIndex": 2,
      "tabs": [
        "Zero",
        "One",
        "Two"
      ]
    },
    "type": "ia.container.tab"
  }
}

```

You may be able to script the `root` and `props` sections to do what you want based on the user access level.
