# Dynamic View Permissions

**URL:** <https://forum.inductiveautomation.com/t/dynamic-view-permissions/61991>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [July 18, 2022, 6:41am UTC](https://forum.inductiveautomation.com/t/dynamic-view-permissions/61991 "2022-07-18T06:41:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayden](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@hayden](https://forum.inductiveautomation.com/u/hayden)\
**Post date:** [July 18, 2022, 6:41am UTC](https://forum.inductiveautomation.com/t/dynamic-view-permissions/61991/1 "2022-07-18T06:41:57Z")

</div>

Hey,  
Has anyone found a way to make view permissions dynamic?

We have some pages that we want restricted to specific users if a tag is set to True. At the moment I’ve been locking down all the buttons and nav menu, but obviously the user could just type the address into the URL

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [July 18, 2022, 12:06pm UTC](https://forum.inductiveautomation.com/t/dynamic-view-permissions/61991/2 "2022-07-18T12:06:27Z")

</div>

What about having this on an _onStartup_ event of the root container?

```auto
if system.tag.readBlocking(["[default]permissionTag"])[0].value:
	self.meta.visible = system.perspective.isAuthorized(False, "Authenticated/Roles/Administrator")
else:
	self.meta.visible = True

```

---

<div class="post-metadata">

**Author:** ![hayden](https://avatars.discourse-cdn.com/v4/letter/h/91b2a8/32.png) [@hayden](https://forum.inductiveautomation.com/u/hayden)\
**Post date:** [July 20, 2022, 1:55am UTC](https://forum.inductiveautomation.com/t/dynamic-view-permissions/61991/3 "2022-07-20T01:55:45Z")

</div>

May be a good idea having it stored as a tag, I’m wondering though, if an admin logs out and doesn’t navigate away would the page still be accessible, or does the logging out reactivate the startup script.

I’ll need to do some testing
